This repository was archived by the owner on Nov 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
HierarchicalStateMachine State
ged edited this page Sep 9, 2024
·
2 revisions
Represents a state within the hierarchical state machine. Each state has a parent state and function pointer callbacks: enter, update, and exit.
template<class TContext>
struct HierarchicalStateMachine<TContext>::State : StateBase<TContext>-
TContext: The type of the context, which holds data or behavior relevant to the state machine.
-
StateBase<TContext>→HierarchicalStateMachine<TContext>::State
-
HierarchicalStateMachine<TContext>::State* const parent- The parent state of this state. If it's
nullptr, then it's considered a root state.
- The parent state of this state. If it's
-
HierarchicalStateMachine<TContext>::State(HierarchicalStateMachine<TContext>::State*, StateCallback<TContext>, StateCallback<TContext>, StateCallback<TContext>)- Initializes a
HierarchicalStateMachine<TContext>::Stateinstance.
- Initializes a
Common Types
→ StateStatus (enum)
→ StateCallback (alias)
Finite State Machine (FSM)
→ State
→ ctor()
→ isInState()
→ transitionTo()
→ update()
Hierarchical State Machine (HSM)
→ State
→ ctor()
→ isInState()
→ transitionTo()
→ update()
State Base
→ ctor()
→ is()
→ enter()
→ update()
→ exit()
State Machine Handler
→ ctor()
→ getNextState()
→ getActiveState()
→ isInState()
→ setNextState()
→ queueTransition()
→ beginTransitionQueue()
→ endTransitionQueue()
→ execute()