types Namespace
Core types for match state management. More...
Definition
Typedefs Index
| using | LivesRevision = uint32_t |
|
Monotonically increasing counter tracking LivesComponent mutations. More... | |
| using | MatchStateType = uint16_t |
|
Underlying type for MatchState bitmask values. More... | |
Enumerations Index
| enum class | MatchState : MatchStateType { ... } |
|
Enumeration of possible match states. More... | |
| enum class | MatchStateTransitionId : uint16_t { ... } |
|
Enumeration of transition identifiers. More... | |
Operators Index
| constexpr MatchState | operator| (const MatchState lhs, const MatchState rhs) noexcept |
|
Bitwise OR operator for combining match states. More... | |
| constexpr MatchState | operator& (const MatchState lhs, const MatchState rhs) noexcept |
|
Bitwise AND operator for masking match states. More... | |
Functions Index
| constexpr bool | hasFlag (const MatchState mask, const MatchState flag) noexcept |
|
Checks if a flag is set in a state mask. More... | |
Variables Index
| constexpr size_t | MatchStateTypeSize = 16 |
Description
Core types for match state management.
Contains enums, structs, and classes for state machine operations.
Typedefs
LivesRevision
|
Monotonically increasing counter tracking LivesComponent mutations.
Observer systems compare their cached revision against the component's current revision to detect changes.
Definition at line 20 of file LivesRevision.ixx.
MatchStateType
|
Underlying type for MatchState bitmask values.
Definition at line 18 of file MatchState.ixx.
Enumerations
MatchState
| strong |
Enumeration of possible match states.
- Enumeration values
-
Undefined (= 0) Warmup (= 1 << 0) Start (= 1 << 1) Countdown (= 1 << 2) Playing (= 1 << 3) PlayerDefeated (= 1 << 4) GameOver (= 1 << 5)
States can be combined using bitwise operators for masking.
Definition at line 27 of file MatchState.ixx.
MatchStateTransitionId
| strong |
Enumeration of transition identifiers.
- Enumeration values
-
Undefined WarmupRequest StartRequest QuitRequest CountdownRequest PlayerDied PlayerSpawnRequest GameOverRequest
Each identifier represents a specific type of match state transition request.
Definition at line 22 of file MatchStateTransitionId.ixx.
Operators
operator&()
| nodiscard constexpr noexcept |
Bitwise AND operator for masking match states.
Definition at line 55 of file MatchState.ixx.
operator|()
| nodiscard constexpr noexcept |
Bitwise OR operator for combining match states.
Definition at line 48 of file MatchState.ixx.
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 66 of file MatchState.ixx.
Variables
MatchStateTypeSize
| constexpr |
Definition at line 20 of file MatchState.ixx.
The documentation for this namespace was generated from the following files:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.