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

#include <RuleTypes.hpp>

Public Member Functions

bool operator== (const PlayerState &) const =default
 

Public Attributes

std::wstring name
 
std::uint8_t token = 0
 
std::uint8_t colour = 0
 
std::uint8_t aiPlayerLevel = 0
 
std::int64_t cash = 0
 
std::uint32_t timeOfLastActivity = 0
 
std::uint8_t currentSquare = 0
 
bool firstMoveMade = false
 
std::uint8_t turnsInJail = 0
 
std::uint8_t inactivityCount = 0
 
bool acceptedConfiguration = false
 
std::uint32_t diceRollHistory = 0
 
std::array< std::int64_t, MaxPlayers > cashGivenInTrade {}
 
bool tradeAccepted = false
 

Detailed Description

Definition at line 205 of file RuleTypes.hpp.

Member Function Documentation

◆ operator==()

bool monopoly::rules::PlayerState::operator== ( const PlayerState &  ) const
default

Member Data Documentation

◆ acceptedConfiguration

bool monopoly::rules::PlayerState::acceptedConfiguration = false

Definition at line 227 of file RuleTypes.hpp.

◆ aiPlayerLevel

std::uint8_t monopoly::rules::PlayerState::aiPlayerLevel = 0

Definition at line 211 of file RuleTypes.hpp.

◆ cash

std::int64_t monopoly::rules::PlayerState::cash = 0

Definition at line 213 of file RuleTypes.hpp.

◆ cashGivenInTrade

std::array<std::int64_t, MaxPlayers> monopoly::rules::PlayerState::cashGivenInTrade {}

Definition at line 234 of file RuleTypes.hpp.

◆ colour

std::uint8_t monopoly::rules::PlayerState::colour = 0

Definition at line 210 of file RuleTypes.hpp.

◆ currentSquare

std::uint8_t monopoly::rules::PlayerState::currentSquare = 0

Definition at line 219 of file RuleTypes.hpp.

◆ diceRollHistory

std::uint32_t monopoly::rules::PlayerState::diceRollHistory = 0

Definition at line 230 of file RuleTypes.hpp.

◆ firstMoveMade

bool monopoly::rules::PlayerState::firstMoveMade = false

Definition at line 221 of file RuleTypes.hpp.

◆ inactivityCount

std::uint8_t monopoly::rules::PlayerState::inactivityCount = 0

Definition at line 224 of file RuleTypes.hpp.

◆ name

std::wstring monopoly::rules::PlayerState::name

Definition at line 207 of file RuleTypes.hpp.

◆ timeOfLastActivity

std::uint32_t monopoly::rules::PlayerState::timeOfLastActivity = 0

Definition at line 215 of file RuleTypes.hpp.

◆ token

std::uint8_t monopoly::rules::PlayerState::token = 0

Definition at line 209 of file RuleTypes.hpp.

◆ tradeAccepted

bool monopoly::rules::PlayerState::tradeAccepted = false

Definition at line 236 of file RuleTypes.hpp.

◆ turnsInJail

std::uint8_t monopoly::rules::PlayerState::turnsInJail = 0

Definition at line 223 of file RuleTypes.hpp.


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