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
FiniteStateMachine State ctor()
ged edited this page Sep 9, 2024
·
2 revisions
Initializes a FiniteStateMachine<TContext>::State instance that has specified enter, update, and exit callbacks.
template<class TContext>
FiniteStateMachine<TContext>::State(StateCallback<TContext> enter, StateCallback<TContext> update, StateCallback<TContext> exit)-
TContext: The type of the context, which holds data or behavior relevant to the state machine.
-
enter: Callback for entering this state. -
update: Callback for updating this state. -
exit: Callback for exiting this state.
FiniteStateMachine<int>::State state1(enter, state1_update, state1_exit);
FiniteStateMachine<int>::State state2(state2_enter, nullptr, state2_exit);
FiniteStateMachine<int>::State state3(nullptr, state3_update, state3_exit);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()