SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
sm::StateBase Class Reference

Abstract state base class that all states inherit from. More...

#include <StateMachine.h>

Inheritance diagram for sm::StateBase:
[legend]

Public Member Functions

virtual ~StateBase ()
 
virtual void invokeStateAction (StateMachine *sm, const EventData *data, const bool stateEntry, const bool stateExit) const
 

Detailed Description

Abstract state base class that all states inherit from.

Definition at line 24 of file StateMachine.h.

Constructor & Destructor Documentation

◆ ~StateBase()

virtual sm::StateBase::~StateBase ( )
inlinevirtual

Definition at line 27 of file StateMachine.h.

27 { ; }

Member Function Documentation

◆ invokeStateAction()

virtual void sm::StateBase::invokeStateAction ( StateMachine sm,
const EventData data,
const bool  stateEntry,
const bool  stateExit 
) const
inlinevirtual

Called by the state machine to execute a state action.

Parameters
smA state machine instance
dataThe event data
stateEntry
stateExit

Reimplemented in sm::StateAction< SM, Data, Func >.

Definition at line 36 of file StateMachine.h.

39  {};

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