Skip to main content

DefaultMatchStateTransitionRules.ixx File

Default transition rules for the game state machine. More...

Included Headers

Namespaces Index

namespacehelios
namespaceengine

Main engine module aggregating core infrastructure and game systems. More...

namespacemechanics

High-level gameplay systems and components for game logic. More...

namespacematch

Match state management for the helios engine. More...

namespacerules

Transition rules for the match state machine. More...

Classes Index

classDefaultMatchStateTransitionRules

Provides the default set of match state transition rules. More...

Description

Default transition rules for the game state machine.

File Listing

The file content with the documentation metadata removed is:

1/**
2 * @file DefaultMatchStateTransitionRules.ixx
3 * @brief Default transition rules for the game state machine.
4 */
5module;
6
7#include <span>
8
9export module helios.engine.mechanics.match.rules.DefaultMatchStateTransitionRules;
10
11
12import helios.engine.state.Bindings;
13import helios.engine.state.types;
14import helios.engine.mechanics.match.types;
15import helios.engine.mechanics.match.rules.guards;
16
17using namespace helios::engine::state::types;
20
22
23 /**
24 * @brief Provides the default set of match state transition rules.
25 */
27
28 static constexpr StateTransitionRule<MatchState> rules_[] = {
29
34 ),
35
40 ),
41
47 ),
48
49
54 ),
55
60 ),
61
67 ),
68
69
75 ),
76
81 ),
82
87 ),
88
89
90 // cancel states
95 ),
100 ),
105 ),
110 ),
115 ),
120 ),
121
126 ),
127
128
129
130
131 };
132
133 public:
134
135 /**
136 * @brief Returns the default transition rules.
137 *
138 * @return A span of the predefined transition rules.
139 */
140 [[nodiscard]] static std::span<const StateTransitionRule<MatchState>> rules() {
141 return rules_;
142 }
143
144 };
145
146
147}
148

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.