XII Release 0.1.0
Loading...
Searching...
No Matches
xiiStateMachineInstance Class Reference

#include <StateMachine.h>

Public Member Functions

 xiiStateMachineInstance (xiiReflectedClass &ref_owner, const xiiSharedPtr< const xiiStateMachineDescription > &pDescription=nullptr)
xiiResult SetState (xiiStateMachineState *pState)
xiiResult SetState (xiiUInt32 uiStateIndex)
xiiResult SetState (const xiiHashedString &sStateName)
xiiResult SetStateOrFallback (const xiiHashedString &sStateName, xiiUInt32 uiFallbackStateIndex=0)
xiiStateMachineState * GetCurrentState ()
void Update (xiiTime deltaTime)
xiiReflectedClass & GetOwner ()
xiiWorld * GetOwnerWorld ()
void SetBlackboard (const xiiSharedPtr< xiiBlackboard > &pBlackboard)
const xiiSharedPtr< xiiBlackboard > & GetBlackboard () const
xiiTime GetTimeInCurrentState () const
 Returns how long the state machine is in its current state.
void FireTransitionEvent (xiiStringView sEvent)
 Sends a named event that state transitions can react to.
xiiStringView GetCurrentTransitionEvent () const

Detailed Description

The state machine instance represents the actual state machine. Typically it is created from a description but for small use cases it can also be used without a description.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/GameEngine/Components/StateMachine/StateMachine.h
  • /home/runner/work/XII/XII/Source/Engine/GameEngine/Components/StateMachine/Implementation/StateMachine.cpp