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 108 of file DefaultGameStateTransitionRules.ixx.
109 return rules_;
110 }
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
46 GameState::Start,
49 ),
51
52 GameState::Title,
55 ),
56
58
62 ),
63
65
69 ),
70
72
76 ),
77
79
83 ),
84
86
90 ),
91
93
97 )
98
99 };
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.