|
Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
|
Classes | |
| struct | SquareDefinition |
Typedefs | |
| using | PropertySet = std::uint32_t |
Enumerations | |
| enum class | SquareType : std::uint8_t { Go = 0 , MediterraneanAvenue , CommunityChest1 , BalticAvenue , IncomeTax , ReadingRailroad , OrientalAvenue , Chance1 , VermontAvenue , ConnecticutAvenue , JustVisiting , StCharlesPlace , ElectricCompany , StatesAvenue , VirginiaAvenue , PennsylvaniaRailroad , StJamesPlace , CommunityChest2 , TennesseeAvenue , NewYorkAvenue , FreeParking , KentuckyAvenue , Chance2 , IndianaAvenue , IllinoisAvenue , BAndORailroad , AtlanticAvenue , VentnorAvenue , WaterWorks , MarvinGardens , GoToJail , PacificAvenue , NorthCarolinaAvenue , CommunityChest3 , PennsylvaniaAvenue , ShortLineRailroad , Chance3 , ParkPlace , LuxuryTax , Boardwalk , InJail , OffBoard , Count } |
| enum class | SquareGroup : std::uint8_t { MediterraneanAvenue = 0 , OrientalAvenue , StCharlesPlace , StJamesPlace , KentuckyAvenue , AtlanticAvenue , PacificAvenue , ParkPlace , Railroad , Utility , CommunityChest , Chance , Miscellaneous , Count } |
Functions | |
| bool | initializeForOptions (const GameOptions &options) |
| const std::array< SquareDefinition, 42 > & | definitions () |
| const SquareDefinition & | definition (SquareType square) |
| const SquareDefinition & | originalDefinition (SquareType square) |
| PropertySet | propertyBit (SquareType square) |
| bool | isOwnable (SquareType square) |
Variables | |
| constexpr std::size_t | MaxPropertyGroups = 10 |
| constexpr std::size_t | RentStepCount = 6 |
| using monopoly::rules::board::PropertySet = typedef std::uint32_t |
Definition at line 88 of file BoardRules.hpp.
|
strong |
| Enumerator | |
|---|---|
| MediterraneanAvenue | |
| OrientalAvenue | |
| StCharlesPlace | |
| StJamesPlace | |
| KentuckyAvenue | |
| AtlanticAvenue | |
| PacificAvenue | |
| ParkPlace | |
| Railroad | |
| Utility | |
| CommunityChest | |
| Chance | |
| Miscellaneous | |
| Count | |
Definition at line 64 of file BoardRules.hpp.
|
strong |
Definition at line 11 of file BoardRules.hpp.
| const SquareDefinition & monopoly::rules::board::definition | ( | SquareType | square | ) |
Definition at line 181 of file BoardRules.cpp.
| const std::array< SquareDefinition, 42 > & monopoly::rules::board::definitions | ( | ) |
Definition at line 174 of file BoardRules.cpp.
| bool monopoly::rules::board::initializeForOptions | ( | const GameOptions & | options | ) |
Definition at line 139 of file BoardRules.cpp.
| bool monopoly::rules::board::isOwnable | ( | SquareType | square | ) |
Definition at line 204 of file BoardRules.cpp.
| const SquareDefinition & monopoly::rules::board::originalDefinition | ( | SquareType | square | ) |
Definition at line 189 of file BoardRules.cpp.
| PropertySet monopoly::rules::board::propertyBit | ( | SquareType | square | ) |
Definition at line 195 of file BoardRules.cpp.
|
inlineconstexpr |
Definition at line 85 of file BoardRules.hpp.
|
inlineconstexpr |
Definition at line 86 of file BoardRules.hpp.