![]() |
Plasma Engine
2.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 | |
plStateMachineInstance (plReflectedClass &ref_owner, const plSharedPtr< const plStateMachineDescription > &pDescription=nullptr) | |
plResult | SetState (plStateMachineState *pState) |
plResult | SetState (plUInt32 uiStateIndex) |
plResult | SetState (const plHashedString &sStateName) |
plResult | SetStateOrFallback (const plHashedString &sStateName, plUInt32 uiFallbackStateIndex=0) |
plStateMachineState * | GetCurrentState () |
void | Update (plTime deltaTime) |
plReflectedClass & | GetOwner () |
plWorld * | GetOwnerWorld () |
void | SetBlackboard (const plSharedPtr< plBlackboard > &pBlackboard) |
const plSharedPtr< plBlackboard > & | GetBlackboard () const |
plTime | GetTimeInCurrentState () const |
Returns how long the state machine is in its current state. | |
void | FireTransitionEvent (plStringView sEvent) |
Sends a named event that state transitions can react to. | |
plStringView | 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.