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
ged edited this page Sep 9, 2024
·
4 revisions
Represents a state in the finite state machine, containing callbacks for entering, updating, and exiting the state.
template<class TContext>
struct FiniteStateMachine<TContext>::State : StateBase<TContext>-
TContext: The type of the context, which holds data or behavior relevant to the state machine.
-
StateBase<TContext>→FiniteStateMachine<TContext>::State
-
FiniteStateMachine<TContext>::State(StateCallback<TContext>, StateCallback<TContext>, StateCallback<TContext>)- Initializes a
FiniteStateMachine<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()