![]() |
XII Release 0.1.0
|
A state machine state implementation that combines multiple sub states into one. More...
#include <StateMachineBuiltins.h>
Public Member Functions | |
xiiStateMachineState_Compound (xiiStringView sName=xiiStringView()) | |
virtual void | OnEnter (xiiStateMachineInstance &ref_instance, void *pInstanceData, const xiiStateMachineState *pFromState) const override |
virtual void | OnExit (xiiStateMachineInstance &ref_instance, void *pInstanceData, const xiiStateMachineState *pToState) const override |
virtual void | Update (xiiStateMachineInstance &ref_instance, void *pInstanceData, xiiTime deltaTime) const override |
virtual xiiResult | Serialize (xiiStreamWriter &inout_stream) const override |
virtual xiiResult | Deserialize (xiiStreamReader &inout_stream) override |
virtual bool | GetInstanceDataDesc (xiiInstanceDataDesc &out_desc) override |
Returns whether this state needs additional instance data and if so fills the out_desc. | |
![]() | |
xiiStateMachineState (xiiStringView sName=xiiStringView()) | |
void | SetName (xiiStringView sName) |
xiiStringView | GetName () const |
const xiiHashedString & | GetNameHashed () const |
![]() | |
virtual const xiiRTTI * | GetDynamicRTTI () const |
bool | IsInstanceOf (const xiiRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T> | |
XII_ALWAYS_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
Public Attributes | |
xiiSmallArray< xiiStateMachineState *, 2 > | m_SubStates |
Additional Inherited Members | |
![]() | |
static const xiiRTTI * | 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 xiiStateMachineState.
|
overridevirtual |
Returns whether this state needs additional instance data and if so fills the out_desc.
Reimplemented from xiiStateMachineState.
|
overridevirtual |
Implements xiiStateMachineState.
|
overridevirtual |
Reimplemented from xiiStateMachineState.
|
overridevirtual |
Reimplemented from xiiStateMachineState.
|
overridevirtual |
Reimplemented from xiiStateMachineState.