Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::rules::GameState Struct Reference

#include <RuleTypes.hpp>

Collaboration diagram for monopoly::rules::GameState:
[legend]

Public Attributes

GameOptions options
 
std::array< PlayerState, MaxPlayers > players {}
 
std::array< SquareState, SquareCount > squares {}
 
std::array< CardDeck, static_cast< std::size_t >(DeckType::Count) > cards {}
 
std::array< std::uint8_t, 2 > dice {}
 
std::array< std::uint8_t, 2 > nextDice {}
 
std::array< std::uint8_t, 2 > utilityDice {}
 
std::uint8_t numberOfDoublesRolled = 0
 
bool justRolledOutOfJail = false
 
CardType pendingCard = CardType::None
 
std::uint64_t gameDurationInSeconds = 0
 
std::int64_t freeParkingJackpotAmount = 0
 
bool tradeInProgress = false
 
std::array< CountHitRecord, MaxCountHitSets > countHits {}
 
AuctionState auction {}
 
PlayerNumber configurationProposer
 
PlayerNumber currentPlayer = NobodyPlayer
 
PlayerNumber numberOfPlayers = 0
 
std::array< PendingPhase, MaxPendingPhases > phaseStack {}
 
std::uint8_t numberOfPendingPhases = 0
 
std::array< std::shared_ptr< const GameState >, MaxPendingPhases > phaseUndo {}
 

Detailed Description

Definition at line 258 of file RuleTypes.hpp.

Member Data Documentation

◆ auction

AuctionState monopoly::rules::GameState::auction {}

Definition at line 293 of file RuleTypes.hpp.

◆ cards

std::array< CardDeck, static_cast<std::size_t>(DeckType::Count) > monopoly::rules::GameState::cards {}

Definition at line 268 of file RuleTypes.hpp.

◆ configurationProposer

PlayerNumber monopoly::rules::GameState::configurationProposer
Initial value:
=
constexpr PlayerNumber NobodyPlayer
Definition RuleTypes.hpp:16

Definition at line 295 of file RuleTypes.hpp.

◆ countHits

std::array<CountHitRecord, MaxCountHitSets> monopoly::rules::GameState::countHits {}

Definition at line 291 of file RuleTypes.hpp.

◆ currentPlayer

PlayerNumber monopoly::rules::GameState::currentPlayer = NobodyPlayer

Definition at line 298 of file RuleTypes.hpp.

◆ dice

std::array<std::uint8_t, 2> monopoly::rules::GameState::dice {}

Definition at line 272 of file RuleTypes.hpp.

◆ freeParkingJackpotAmount

std::int64_t monopoly::rules::GameState::freeParkingJackpotAmount = 0

Definition at line 284 of file RuleTypes.hpp.

◆ gameDurationInSeconds

std::uint64_t monopoly::rules::GameState::gameDurationInSeconds = 0

Definition at line 282 of file RuleTypes.hpp.

◆ justRolledOutOfJail

bool monopoly::rules::GameState::justRolledOutOfJail = false

Definition at line 278 of file RuleTypes.hpp.

◆ nextDice

std::array<std::uint8_t, 2> monopoly::rules::GameState::nextDice {}

Definition at line 273 of file RuleTypes.hpp.

◆ numberOfDoublesRolled

std::uint8_t monopoly::rules::GameState::numberOfDoublesRolled = 0

Definition at line 276 of file RuleTypes.hpp.

◆ numberOfPendingPhases

std::uint8_t monopoly::rules::GameState::numberOfPendingPhases = 0

Definition at line 302 of file RuleTypes.hpp.

◆ numberOfPlayers

PlayerNumber monopoly::rules::GameState::numberOfPlayers = 0

Definition at line 299 of file RuleTypes.hpp.

◆ options

GameOptions monopoly::rules::GameState::options

Definition at line 260 of file RuleTypes.hpp.

◆ pendingCard

CardType monopoly::rules::GameState::pendingCard = CardType::None

Definition at line 280 of file RuleTypes.hpp.

◆ phaseStack

std::array<PendingPhase, MaxPendingPhases> monopoly::rules::GameState::phaseStack {}

Definition at line 301 of file RuleTypes.hpp.

◆ phaseUndo

std::array<std::shared_ptr<const GameState>, MaxPendingPhases> monopoly::rules::GameState::phaseUndo {}

Definition at line 306 of file RuleTypes.hpp.

◆ players

std::array<PlayerState, MaxPlayers> monopoly::rules::GameState::players {}

Definition at line 262 of file RuleTypes.hpp.

◆ squares

std::array<SquareState, SquareCount> monopoly::rules::GameState::squares {}

Definition at line 263 of file RuleTypes.hpp.

◆ tradeInProgress

bool monopoly::rules::GameState::tradeInProgress = false

Definition at line 288 of file RuleTypes.hpp.

◆ utilityDice

std::array<std::uint8_t, 2> monopoly::rules::GameState::utilityDice {}

Definition at line 274 of file RuleTypes.hpp.


The documentation for this struct was generated from the following file: