![]() |
Plasma Engine
2.0
|
A state machine state implementation that represents another state machine nested within this state. This can be used to build hierarchical state machines. More...
#include <StateMachineBuiltins.h>
Public Member Functions | |
plStateMachineState_NestedStateMachine (plStringView sName=plStringView()) | |
virtual void | OnEnter (plStateMachineInstance &ref_instance, void *pInstanceData, const plStateMachineState *pFromState) const override |
virtual void | OnExit (plStateMachineInstance &ref_instance, void *pInstanceData, const plStateMachineState *pToState) const override |
virtual void | Update (plStateMachineInstance &ref_instance, void *pInstanceData, plTime deltaTime) const override |
virtual plResult | Serialize (plStreamWriter &inout_stream) const override |
virtual plResult | Deserialize (plStreamReader &inout_stream) override |
virtual bool | GetInstanceDataDesc (plInstanceDataDesc &out_desc) override |
Returns whether this state needs additional instance data and if so fills the out_desc. | |
void | SetResource (const plStateMachineResourceHandle &hResource) |
const plStateMachineResourceHandle & | GetResource () const |
void | SetResourceFile (const char *szFile) |
const char * | GetResourceFile () const |
void | SetInitialState (const char *szName) |
Defines which state should be used as initial state after the state machine was instantiated. If empty the state machine resource defines the initial state. | |
const char * | GetInitialState () const |
![]() | |
plStateMachineState (plStringView sName=plStringView()) | |
void | SetName (plStringView sName) |
plStringView | GetName () const |
const plHashedString & | GetNameHashed () const |
![]() | |
virtual const plRTTI * | GetDynamicRTTI () const |
bool | IsInstanceOf (const plRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T > | |
PL_ALWAYS_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
Additional Inherited Members | |
![]() | |
static const plRTTI * | GetStaticRTTI () |
A state machine state implementation that represents another state machine nested within this state. This can be used to build hierarchical state machines.
|
overridevirtual |
Reimplemented from plStateMachineState.
|
overridevirtual |
Returns whether this state needs additional instance data and if so fills the out_desc.
Reimplemented from plStateMachineState.
|
overridevirtual |
Implements plStateMachineState.
|
overridevirtual |
Reimplemented from plStateMachineState.
|
overridevirtual |
Reimplemented from plStateMachineState.
|
overridevirtual |
Reimplemented from plStateMachineState.