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
StateBase ctor()
ged edited this page Sep 10, 2024
·
2 revisions
Initializes a StateBase instance that has a specified enter, update and exit callbacks.
template<class TContext>
StateBase(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: A function pointer to be executed when the state enters. -
update: A function pointer to be executed when the state updates. -
exit: A function pointer to be executed when the state exits.
This constructor is marked as protected, meaning it can only be called by derived classes.
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()