![]() |
Plasma Engine
2.0
|
A state machine state implementation that combines multiple sub states into one. More...
#include <StateMachineBuiltins.h>
Public Member Functions | |
plStateMachineState_Compound (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. | |
![]() | |
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. | |
Public Attributes | |
plSmallArray< plStateMachineState *, 2 > | m_SubStates |
Additional Inherited Members | |
![]() | |
static const plRTTI * | GetStaticRTTI () |
A state machine state implementation that combines multiple sub states into one.
Can be used to build states in a more modular way. All calls are simply redirected to all sub states, e.g. when entered it calls OnEnter on all its sub states.
|
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.