![]() |
XII Release 0.1.0
|
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. More...
#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 |
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.