16 player.acceptedConfiguration =
true;
43 received.immunitiesTradingAllowed =
false;
48 update.optionsChanged =
true;
61 update.acceptanceChanged =
true;
78 message.fromPlayer = fromPlayer;
81 message.numberD =
interim ? 1 : 0;
86 result = std::move(message);
@ NotifyProposedConfiguration
bool encodeOptions(const GameOptions &options, std::vector< std::uint8_t > &result)
bool decodeOptions(std::span< const std::uint8_t > data, GameOptions &result)
actions::Message proposedConfigurationMessage(const GameState &state)
void clearAcceptConfiguration(GameState &state) noexcept
bool acceptedConfigurationMessage(const GameOptions &options, PlayerNumber fromPlayer, bool interim, actions::Message &result)
AcceptanceUpdate applyAcceptedConfiguration(GameState &state, const actions::Message &message)
constexpr PlayerNumber BankPlayer
std::uint8_t PlayerNumber
const GameState & state()
constexpr PlayerNumber MaxPlayers
constexpr PlayerNumber AllPlayers
rules::PlayerNumber fromPlayer
std::vector< std::uint8_t > binaryDataA
bool futureRentTradingAllowed
PlayerNumber numberOfPlayers
PlayerNumber configurationProposer
std::array< PlayerState, MaxPlayers > players