rules Folder
Folders Index
| folder | guards |
Files Index
| file | helios/engine/mechanics/match/rules/_module.ixx |
|
Game state transition rules submodule. More... | |
| file | DefaultMatchStateTransitionRules.ixx |
|
Default transition rules for the game state machine. More... | |
Description
helios::engine::mechanics::match::rules
Transition rules for the match state machine.
Rules
| Class | Description |
|---|---|
| DefaultMatchStateTransitionRules | Provides the default set of match state transition rules |
| DefaultMatchStateTransitionGuards | Guard callbacks for conditional transitions |
DefaultMatchStateTransitionRules
Defines standard transitions:
| From | Transition | To | Guard |
|---|---|---|---|
| Undefined | WarmupRequest | Warmup | — |
| Warmup | StartRequest | Start | — |
| Start | CountdownRequest | Countdown | isPlayerActive |
| Countdown | PlayerSpawnRequest | Playing | — |
| Playing | PlayerDied | PlayerDefeated | — |
| PlayerDefeated | CountdownRequest | Countdown | hasLifeLeft |
| PlayerDefeated | GameOverRequest | GameOver | hasNoLifeLeft |
| GameOver | WarmupRequest | Warmup | — |
| GameOver | StartRequest | Start | — |
Additional cancel/reset transitions allow returning to earlier states from most active states (e.g., Playing → Start, Countdown → Warmup).
Custom rules can be provided to the MatchStateManager constructor.
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.