DefaultGameStateTransitionRules Class
Provides the default set of game state transition rules. More...
Declaration
class helios::engine::mechanics::gamestate::rules::DefaultGameStateTransitionRules { ... }
Public Static Functions Index
| static std::span< const StateTransitionRule< GameState > > | rules () |
|
Returns the default transition rules. More... | |
Private Static Attributes Index
| static constexpr StateTransitionRule< GameState > | rules_[] |
Description
Provides the default set of game state transition rules.
Defines standard transitions such as:
- Undefined -> Title (on TitleRequested)
- Title -> Running (on StartRequested)
- Running <-> Paused (on TogglePause)
- Paused -> Running (on RestartRequested)
- Paused -> Title (on QuitGameRequested)
Definition at line 35 of file DefaultGameStateTransitionRules.ixx.
Public Static Functions
rules()
| inline nodiscard static |
Returns the default transition rules.
- Returns
A span of the predefined transition rules.
Definition at line 111 of file DefaultGameStateTransitionRules.ixx.
112 return rules_;
113 }
Referenced by helios::engine::bootstrap::makeGameWorld.
Private Static Attributes
rules_
| constexpr static |
Definition at line 37 of file DefaultGameStateTransitionRules.ixx.
37 static constexpr StateTransitionRule<GameState> rules_[] = {
38
43 ),
44
49 ),
50
52 GameState::Title,
55 ),
56
61 ),
62
64
68 ),
69
71
75 ),
76
77
82 ),
83
88 ),
89
94 ),
95
100 )
101
102 };
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.