29 static_cast<std::int64_t
>(
63 static_cast<std::int64_t
>(
67 static_cast<std::int64_t
>(
104 static_cast<std::int64_t
>(
108 static_cast<std::int64_t
>(
248 square.offeredInTradeTo =
252 square.mortgaged =
false;
253 square.gameEarnings = 0;
352 wrongPhase(
state, message);
362 wrongPlayer(
state, message);
434 wrongPhase(
state, message);
440 wrongPlayer(
state, message);
449 if (update.restartNeeded())
477 static_cast<std::uint32_t
>(proposal.
numberB);
496 .diceRollHistory = 0;
constexpr std::int64_t ErrorWrongPlayer
constexpr std::int64_t ErrorWrongPhase
constexpr std::int64_t ErrorGameStarting
constexpr std::int64_t ErrorNeedTwoPlayers
std::uint32_t playerOwner(rules::PlayerNumber player)
bool sendAction(const actions::Message &message)
void setPlayerOwner(rules::PlayerNumber player, std::uint32_t source)
bool initializeForOptions(const GameOptions &options)
void initializeDecks(GameState &state, std::mt19937 &randomGenerator)
actions::Message proposedConfigurationMessage(const GameState &state)
void clearAcceptConfiguration(GameState &state) noexcept
AcceptanceUpdate applyAcceptedConfiguration(GameState &state, const actions::Message &message)
void actionStartGame(GameState &state, const actions::Message &message)
void startGameAfterOrdering(GameState &state)
void restartConfiguration(GameState &state)
void actionAcceptConfiguration(GameState &state, const actions::Message &message)
void dealNProperties(GameState &state)
const PendingPhase & current(const GameState &state)
void switchTo(GameState &state, GamePhase phase, PlayerNumber fromPlayer, PlayerNumber toPlayer, std::int64_t amount)
std::mt19937 & generator()
void sendClientState(const GameState &state, PlayerNumber toPlayer, Cause cause)
constexpr PlayerNumber BankPlayer
std::uint8_t PlayerNumber
const GameState & state()
constexpr PlayerNumber MaxPlayers
constexpr PlayerNumber NobodyPlayer
constexpr PlayerNumber AllPlayers
rules::PlayerNumber fromPlayer
bool rollDiceToDecideStartingOrder
int dealNPropertiesAtStartup
PlayerNumber currentPlayer
PlayerNumber numberOfPlayers
PlayerNumber configurationProposer
std::int64_t freeParkingJackpotAmount
std::array< SquareState, SquareCount > squares
std::uint64_t gameDurationInSeconds
std::array< PlayerState, MaxPlayers > players
std::uint8_t currentSquare
std::uint8_t aiPlayerLevel