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

Enumerations

enum class  SetupRule : std::uint8_t {
  HousesPerHotel = 0 , MaximumHouses , MaximumHotels , FreeParkingSeed ,
  InitialCash , PassingGoAmount , TaxRate , FlatTaxFee ,
  LuxuryTaxAmount , MaximumTurnsInJail , GetOutOfJailFee , HouseShortageLevel ,
  HotelShortageLevel , InterestRate , AuctionDelay , DealNPropertiesAtStartup ,
  EvenBuildRule , DoubleSalaryOnGo , FreeParkingPot , FuturesAndImmunities ,
  DealFreePropertiesAtStartup , Count
}
 

Functions

void setDefaults (GameOptions &options)
 
void setStandardMonopolyRules (GameOptions &options)
 
void setShortGameRules (GameOptions &options)
 
std::uint8_t setupRuleChoiceCount (SetupRule rule) noexcept
 
bool applySetupRuleChoice (GameOptions &options, SetupRule rule, std::uint8_t choice) noexcept
 
void validate (GameOptions &options)
 

Enumeration Type Documentation

◆ SetupRule

enum class monopoly::rules::options::SetupRule : std::uint8_t
strong
Enumerator
HousesPerHotel 
MaximumHouses 
MaximumHotels 
FreeParkingSeed 
InitialCash 
PassingGoAmount 
TaxRate 
FlatTaxFee 
LuxuryTaxAmount 
MaximumTurnsInJail 
GetOutOfJailFee 
HouseShortageLevel 
HotelShortageLevel 
InterestRate 
AuctionDelay 
DealNPropertiesAtStartup 
EvenBuildRule 
DoubleSalaryOnGo 
FreeParkingPot 
FuturesAndImmunities 
DealFreePropertiesAtStartup 
Count 

Definition at line 9 of file RuleOptions.hpp.

Function Documentation

◆ applySetupRuleChoice()

bool monopoly::rules::options::applySetupRuleChoice ( GameOptions &  options,
SetupRule  rule,
std::uint8_t  choice 
)
noexcept

Definition at line 205 of file RuleOptions.cpp.

◆ setDefaults()

void monopoly::rules::options::setDefaults ( GameOptions &  options)

Definition at line 39 of file RuleOptions.cpp.

◆ setShortGameRules()

void monopoly::rules::options::setShortGameRules ( GameOptions &  options)

Definition at line 154 of file RuleOptions.cpp.

◆ setStandardMonopolyRules()

void monopoly::rules::options::setStandardMonopolyRules ( GameOptions &  options)

Definition at line 123 of file RuleOptions.cpp.

◆ setupRuleChoiceCount()

std::uint8_t monopoly::rules::options::setupRuleChoiceCount ( SetupRule  rule)
noexcept

Definition at line 165 of file RuleOptions.cpp.

◆ validate()

void monopoly::rules::options::validate ( GameOptions &  options)

Definition at line 303 of file RuleOptions.cpp.