XII Release 0.1.0
Loading...
Searching...
No Matches
xiiStateMachineTransition_Compound Class Reference

#include <StateMachineBuiltins.h>

Inheritance diagram for xiiStateMachineTransition_Compound:
[legend]

Public Member Functions

virtual bool IsConditionMet (xiiStateMachineInstance &ref_instance, void *pInstanceData) const override
virtual xiiResult Serialize (xiiStreamWriter &inout_stream) const override
virtual xiiResult Deserialize (xiiStreamReader &inout_stream) override
virtual bool GetInstanceDataDesc (xiiInstanceDataDesc &out_desc) override
Public Member Functions inherited from xiiReflectedClass
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

xiiEnum< xiiStateMachineLogicOperator > m_Operator
xiiSmallArray< xiiStateMachineTransition *, 2 > m_SubTransitions

Additional Inherited Members

Static Public Member Functions inherited from xiiNoBase
static const xiiRTTI * GetStaticRTTI ()

Detailed Description

A state machine transition implementation that combines multiple sub transition into one.

Can be used to build transitions in a more modular way. All calls are simply redirected to all sub transitions and then combined with the given logic operator (AND, OR).

Member Function Documentation

◆ Deserialize()

xiiResult xiiStateMachineTransition_Compound::Deserialize ( xiiStreamReader & inout_stream)
overridevirtual

Reimplemented from xiiStateMachineTransition.

◆ GetInstanceDataDesc()

bool xiiStateMachineTransition_Compound::GetInstanceDataDesc ( xiiInstanceDataDesc & out_desc)
overridevirtual

Returns whether this transition needs additional instance data and if so fills the out_desc.

See also
xiiStateMachineInstanceDataDesc

Reimplemented from xiiStateMachineTransition.

◆ IsConditionMet()

bool xiiStateMachineTransition_Compound::IsConditionMet ( xiiStateMachineInstance & ref_instance,
void * pInstanceData ) const
overridevirtual

◆ Serialize()

xiiResult xiiStateMachineTransition_Compound::Serialize ( xiiStreamWriter & inout_stream) const
overridevirtual

Reimplemented from xiiStateMachineTransition.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/GameEngine/Components/StateMachine/StateMachineBuiltins.h
  • /home/runner/work/XII/XII/Source/Engine/GameEngine/Components/StateMachine/Implementation/StateMachineBuiltins.cpp