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
8{
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.
42 GameOptions& options
43 );
44
46 GameOptions& options
47 );
48
49 [[nodiscard]]
50 std::uint8_t setupRuleChoiceCount(
51 SetupRule rule
52 ) noexcept;
53
54 [[nodiscard]]
56 GameOptions& options,
57 SetupRule rule,
58 std::uint8_t choice
59 ) noexcept;
60
61 void validate(
62 GameOptions& options
63 );
64}
unsigned index
void setDefaults(GameOptions &options)
std::uint8_t setupRuleChoiceCount(SetupRule rule) noexcept
void validate(GameOptions &options)
void setShortGameRules(GameOptions &options)
void setStandardMonopolyRules(GameOptions &options)
bool applySetupRuleChoice(GameOptions &options, SetupRule rule, std::uint8_t choice) noexcept