Skip to main content

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.

Definition at line 28 of file DefaultGameStateTransitionRules.ixx.

Public Static Functions

rules()

std::span< const StateTransitionRule< GameState > > helios::engine::mechanics::gamestate::rules::DefaultGameStateTransitionRules::rules ()
inline nodiscard static

Returns the default transition rules.

Returns

A span of the predefined transition rules.

Definition at line 110 of file DefaultGameStateTransitionRules.ixx.

110 [[nodiscard]] static std::span<const StateTransitionRule<GameState>> rules() {
111 return rules_;
112 }

Referenced by helios::engine::bootstrap::makeGameWorld.

Private Static Attributes

rules_

StateTransitionRule<GameState> helios::engine::mechanics::gamestate::rules::DefaultGameStateTransitionRules::rules_[]
constexpr static

Definition at line 30 of file DefaultGameStateTransitionRules.ixx.

30 static constexpr StateTransitionRule<GameState> rules_[] = {
31
36 ),
37
42 ),
43
48 ),
49
54 ),
55
60 ),
61
63
67 ),
68
70
74 ),
75
76
81 ),
82
87 ),
88
93 ),
94
99 )
100
101 };

The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.