|
| enum class | Phase : std::uint8_t {
None = 0
, HiScore
, LocalOrNetwork
, SelectPlayer
,
EnterName
, SelectToken
, StartAddRemove
, RemovePlayer
,
SelectAIStrength
, SelectCity
, StandardOrCustomRules
, CustomizeRules
,
Max
} |
| |
| enum class | Button : std::uint8_t {
None = 0
, EnterNameNext
, SelectPlayerNew
, SelectPlayerMore
,
SelectPlayerCard1
, SelectPlayerCard2
, SelectPlayerCard3
, SelectPlayerCard4
,
SelectPlayerCard5
, SelectPlayerCard6
, SelectPlayerCard7
, SelectPlayerCard8
,
TokenGun
, TokenIron
, TokenThimble
, TokenCar
,
TokenHorse
, TokenBarrow
, TokenDog
, TokenShip
,
TokenMoneyBag
, TokenHat
, TokenShoe
, TokenNext
,
AddHuman
, AddComputer
, RemovePlayer
, StartGame
,
RemoveCancel
, AIEasy
, AIMedium
, AIHard
,
CityClassic
, CityLoadBoard
, CityLeft
, CityRight
,
CountryLeft
, CountryRight
, CurrencyLeft
, CurrencyRight
,
CityNext
, RulesStandard
, RulesCustom
, RulesOkay
,
RulesRestoreStandard
, RulesShortGame
} |
| |
| enum class | CommandType : std::uint8_t {
None = 0
, AddLocalPlayer
, RemoveLocalPlayer
, StartGame
,
CommitCity
, RequestCustomBoard
, AcceptStandardRules
, AcceptCustomRules
,
RestoreStandardRules
, ApplyShortGameRules
, ApplyCustomRule
} |
| |
|
| void | initialize (State &state, bool serverMode) |
| |
| void | setTokenName (State &state, std::uint8_t token, std::wstring_view name) |
| |
| void | setPlayerLogAvailable (State &state, bool available) |
| |
| void | setPlayerLogEntries (State &state, const rules::GameState &uiState, std::span< const std::wstring > entries) |
| |
| void | setEnteredName (State &state, std::wstring_view name) |
| |
| void | requestPhase (State &state, const GameState &uiState, Phase requested) |
| |
| bool | tokenAvailable (const GameState &uiState, std::uint8_t token) |
| |
| std::uint8_t | nextAvailableToken (const GameState &uiState, std::uint8_t currentToken) |
| |
| std::uint8_t | tokenFromName (const State &state, const GameState &uiState, std::wstring_view name) |
| |
| std::uint8_t | nextAvailableColour (const GameState &uiState, std::uint8_t currentColour) |
| |
| Button | buttonAt (Phase phase, int x, int y, data::BoardEdition edition) |
| |
| Command | clickButton (State &state, const GameState &uiState, Button button) |
| |
| Command | clickAt (State &state, const GameState &uiState, int x, int y) |
| |
| Command | customRuleChoice (State &state, const GameState &, rules::options::SetupRule rule, std::uint8_t choice) |
| |
| Command | playerBarClicked (State &state, rules::PlayerNumber player) |
| |
| void | requestPhase (State &state, const rules::GameState &uiState, Phase phase) |
| |
| bool | tokenAvailable (const rules::GameState &uiState, std::uint8_t token) |
| |
| std::uint8_t | nextAvailableToken (const rules::GameState &uiState, std::uint8_t currentToken) |
| |
| std::uint8_t | tokenFromName (const State &state, const rules::GameState &uiState, std::wstring_view name) |
| |
| std::uint8_t | nextAvailableColour (const rules::GameState &uiState, std::uint8_t currentColour) |
| |
| Command | clickButton (State &state, const rules::GameState &uiState, Button button) |
| |
| Command | clickAt (State &state, const rules::GameState &uiState, int x, int y) |
| |
| Command | customRuleChoice (State &state, const rules::GameState &uiState, rules::options::SetupRule rule, std::uint8_t choice) |
| |