types Namespace
Core types for game state management. More...
Definition
Typedefs Index
| using | GameStateType = uint16_t |
Enumerations Index
| enum class | GameState : GameStateType { ... } |
|
Enumeration of possible game states. More... | |
| enum class | GameStateTransitionId : uint16_t { ... } |
|
Enumeration of transition identifiers. More... | |
Operators Index
| constexpr GameState | operator| (const GameState lhs, const GameState rhs) noexcept |
|
Bitwise OR operator for combining game states. More... | |
| constexpr GameState | operator& (const GameState lhs, const GameState rhs) noexcept |
|
Bitwise AND operator for masking game states. More... | |
| constexpr GameState | operator~ (const GameState lhs) noexcept |
|
Bitwise NOT operator for inverting game state bits. More... | |
Functions Index
| constexpr bool | hasFlag (const GameState mask, const GameState flag) noexcept |
|
Checks if a flag is set in a state mask. More... | |
Variables Index
| constexpr size_t | GameStateTypeSize = 16 |
Description
Core types for game state management.
Contains enums, structs, and classes for state machine operations.
Typedefs
GameStateType
|
Underlying type for GameState bitmask values.
Definition at line 18 of file GameState.ixx.
Enumerations
GameState
| strong |
Enumeration of possible game states.
- Enumeration values
States can be combined using bitwise operators for masking.
Definition at line 27 of file GameState.ixx.
GameStateTransitionId
| strong |
Enumeration of transition identifiers.
- Enumeration values
-
Undefined (= 0) BootRequest WarmupRequest ReadyMatchRequest StartMatchRequest TogglePause TitleRequest ShutdownRequest
Each identifier represents a specific type of state transition request.
Definition at line 21 of file GameStateTransitionId.ixx.
Operators
operator&()
| nodiscard constexpr noexcept |
Bitwise AND operator for masking game states.
Definition at line 71 of file GameState.ixx.
operator|()
| nodiscard constexpr noexcept |
Bitwise OR operator for combining game states.
Definition at line 64 of file GameState.ixx.
operator~()
| nodiscard constexpr noexcept |
Bitwise NOT operator for inverting game state bits.
Definition at line 78 of file GameState.ixx.
Reference Any.
Functions
hasFlag()
| nodiscard constexpr noexcept |
Checks if a flag is set in a state mask.
- Parameters
-
mask The state mask to check.
flag The flag to check for.
- Returns
True if the flag is set in the mask.
Definition at line 90 of file GameState.ixx.
Variables
GameStateTypeSize
| constexpr |
Definition at line 20 of file GameState.ixx.
The documentation for this namespace was generated from the following files:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.