Monopoly — Portage moderne
0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
RuleOptions.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
RuleTypes.hpp
"
4
5
#include <cstdint>
6
7
namespace
monopoly::rules::options
8
{
9
enum class
SetupRule
: std::uint8_t
10
{
11
HousesPerHotel
= 0,
12
MaximumHouses
,
13
MaximumHotels
,
14
FreeParkingSeed
,
15
InitialCash
,
16
PassingGoAmount
,
17
TaxRate
,
18
FlatTaxFee
,
19
LuxuryTaxAmount
,
20
MaximumTurnsInJail
,
21
GetOutOfJailFee
,
22
HouseShortageLevel
,
23
HotelShortageLevel
,
24
InterestRate
,
25
AuctionDelay
,
26
DealNPropertiesAtStartup
,
27
EvenBuildRule
,
28
DoubleSalaryOnGo
,
29
FreeParkingPot
,
30
FuturesAndImmunities
,
31
DealFreePropertiesAtStartup
,
32
Count
33
};
34
35
void
setDefaults
(
36
GameOptions
& options
37
);
38
39
// UDPsel.cpp::udpsel_SetStandardRules. Unlike ActionNewGame defaults,
40
// this overwrites only the fields touched by the setup-screen preset.
41
void
setStandardMonopolyRules
(
42
GameOptions
& options
43
);
44
45
void
setShortGameRules
(
46
GameOptions
& options
47
);
48
49
[[
nodiscard
]]
50
std::uint8_t
setupRuleChoiceCount
(
51
SetupRule
rule
52
)
noexcept
;
53
54
[[
nodiscard
]]
55
bool
applySetupRuleChoice
(
56
GameOptions
& options,
57
SetupRule
rule,
58
std::uint8_t choice
59
)
noexcept
;
60
61
void
validate
(
62
GameOptions
& options
63
);
64
}
index
unsigned index
Definition
ModernIBarSkin.cpp:25
RuleTypes.hpp
monopoly::rules::options
Definition
RuleOptions.cpp:7
monopoly::rules::options::setDefaults
void setDefaults(GameOptions &options)
Definition
RuleOptions.cpp:39
monopoly::rules::options::SetupRule
SetupRule
Definition
RuleOptions.hpp:10
monopoly::rules::options::SetupRule::PassingGoAmount
@ PassingGoAmount
monopoly::rules::options::SetupRule::MaximumTurnsInJail
@ MaximumTurnsInJail
monopoly::rules::options::SetupRule::LuxuryTaxAmount
@ LuxuryTaxAmount
monopoly::rules::options::SetupRule::HousesPerHotel
@ HousesPerHotel
monopoly::rules::options::SetupRule::DealFreePropertiesAtStartup
@ DealFreePropertiesAtStartup
monopoly::rules::options::SetupRule::DoubleSalaryOnGo
@ DoubleSalaryOnGo
monopoly::rules::options::SetupRule::MaximumHouses
@ MaximumHouses
monopoly::rules::options::SetupRule::HotelShortageLevel
@ HotelShortageLevel
monopoly::rules::options::SetupRule::AuctionDelay
@ AuctionDelay
monopoly::rules::options::SetupRule::InitialCash
@ InitialCash
monopoly::rules::options::SetupRule::EvenBuildRule
@ EvenBuildRule
monopoly::rules::options::SetupRule::GetOutOfJailFee
@ GetOutOfJailFee
monopoly::rules::options::SetupRule::FreeParkingSeed
@ FreeParkingSeed
monopoly::rules::options::SetupRule::InterestRate
@ InterestRate
monopoly::rules::options::SetupRule::HouseShortageLevel
@ HouseShortageLevel
monopoly::rules::options::SetupRule::Count
@ Count
monopoly::rules::options::SetupRule::FuturesAndImmunities
@ FuturesAndImmunities
monopoly::rules::options::SetupRule::FlatTaxFee
@ FlatTaxFee
monopoly::rules::options::SetupRule::TaxRate
@ TaxRate
monopoly::rules::options::SetupRule::DealNPropertiesAtStartup
@ DealNPropertiesAtStartup
monopoly::rules::options::SetupRule::FreeParkingPot
@ FreeParkingPot
monopoly::rules::options::SetupRule::MaximumHotels
@ MaximumHotels
monopoly::rules::options::setupRuleChoiceCount
std::uint8_t setupRuleChoiceCount(SetupRule rule) noexcept
Definition
RuleOptions.cpp:165
monopoly::rules::options::validate
void validate(GameOptions &options)
Definition
RuleOptions.cpp:303
monopoly::rules::options::setShortGameRules
void setShortGameRules(GameOptions &options)
Definition
RuleOptions.cpp:154
monopoly::rules::options::setStandardMonopolyRules
void setStandardMonopolyRules(GameOptions &options)
Definition
RuleOptions.cpp:123
monopoly::rules::options::applySetupRuleChoice
bool applySetupRuleChoice(GameOptions &options, SetupRule rule, std::uint8_t choice) noexcept
Definition
RuleOptions.cpp:205
monopoly::rules::GameOptions
Definition
RuleTypes.hpp:138
RuleOptions.hpp
Generated by
1.9.8