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

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

#include <StateMachineBuiltins.h>

Inheritance diagram for plStateMachineTransition_Compound:

Public Member Functions

virtual bool IsConditionMet (plStateMachineInstance &ref_instance, void *pInstanceData) 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 transition needs additional instance data and if so fills the out_desc.
 
- Public Member Functions inherited from plReflectedClass
virtual const plRTTIGetDynamicRTTI () 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

plEnum< plStateMachineLogicOperatorm_Operator
 
plSmallArray< plStateMachineTransition *, 2 > m_SubTransitions
 

Additional Inherited Members

- Static Public Member Functions inherited from plNoBase
static const plRTTIGetStaticRTTI ()
 

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()

plResult plStateMachineTransition_Compound::Deserialize ( plStreamReader & inout_stream)
overridevirtual

Reimplemented from plStateMachineTransition.

◆ GetInstanceDataDesc()

bool plStateMachineTransition_Compound::GetInstanceDataDesc ( plInstanceDataDesc & out_desc)
overridevirtual

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

See also
plStateMachineInstanceDataDesc

Reimplemented from plStateMachineTransition.

◆ IsConditionMet()

bool plStateMachineTransition_Compound::IsConditionMet ( plStateMachineInstance & ref_instance,
void * pInstanceData ) const
overridevirtual

◆ Serialize()

plResult plStateMachineTransition_Compound::Serialize ( plStreamWriter & inout_stream) const
overridevirtual

Reimplemented from plStateMachineTransition.


The documentation for this class was generated from the following files: