21 constexpr std::uint8_t OffBoardSquare = 41;
48 NotifyActionCompleted,
51 static_cast<std::int64_t
>(
143 static_cast<std::uint8_t
>(
173 const std::uint8_t item =
177 const std::int64_t
price =
283 NotifySquareOwnership,
370 NotifyHousingShortage
429 NotifyHousingShortage,
448 const std::int64_t
price =
613 ErrorBuildingAlreadyBuying,
719 NotifyHousingShortage,
constexpr std::int64_t ErrorBuildingBought
std::size_t currentQueueSize()
bool sendAction(const actions::Message &message)
void actionBid(GameState &state, const actions::Message &message)
void actionStartHousingAuction(GameState &state, const actions::Message &message)
void onIdleTick(GameState &state)
bool restartAuctionPhase(GameState &state)
bool startPendingBankPropertyAuction(GameState &state)
const SquareDefinition & definition(SquareType square)
bool isOwnable(SquareType square)
PropertySet propertyBit(SquareType square)
PlayerSet playersWhoCanBuyBuilding(const GameState &state, bool hotel)
void buildApprovedBuilding(GameState &state, std::uint8_t squareNo)
void blindlyTransferCash(GameState &state, PlayerNumber fromPlayer, PlayerNumber toPlayer, std::int64_t amount, bool sendAnimation)
void stackDebt(GameState &state, PlayerNumber fromPlayer, PlayerNumber toPlayer, std::int64_t amount)
void stackDebtAndRestart(GameState &state, PlayerNumber fromPlayer, PlayerNumber toPlayer, std::int64_t amount)
void transferPropertyForSettlement(GameState &state, std::uint8_t squareNo, PlayerNumber toPlayer)
bool pop(GameState &state)
const PendingPhase & current(const GameState &state)
bool push(GameState &state, GamePhase phase, PlayerNumber fromPlayer, PlayerNumber toPlayer, std::int64_t amount)
void switchTo(GameState &state, GamePhase phase, PlayerNumber fromPlayer, PlayerNumber toPlayer, std::int64_t amount)
void wrongPlayer(const GameState &state, const actions::Message &message)
void wrongPhase(const GameState &state, const actions::Message &message)
bool beginWaitOnce(GameState &state, actions::Type hint)
@ HousingShortageQuestion
constexpr PlayerNumber BankPlayer
std::uint8_t PlayerNumber
const GameState & state()
constexpr PlayerNumber MaxPlayers
constexpr PlayerNumber NobodyPlayer
constexpr PlayerNumber AllPlayers
rules::PlayerNumber toPlayer
rules::PlayerNumber fromPlayer
std::uint8_t propertyBeingAuctioned
PlayerNumber highestBidder
int auctionGoingTimeDelay
PlayerNumber numberOfPlayers
std::array< SquareState, SquareCount > squares
std::array< PendingPhase, MaxPendingPhases > phaseStack
std::uint8_t numberOfPendingPhases
std::array< PlayerState, MaxPlayers > players
PlayerNumber offeredInTradeTo
std::int64_t housePurchaseCost