Plasma Engine  2.0
Loading...
Searching...
No Matches
plStateMachineInstance Class Reference

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)
 
plStateMachineStateGetCurrentState ()
 
void Update (plTime deltaTime)
 
plReflectedClassGetOwner ()
 
plWorldGetOwnerWorld ()
 
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
 

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: