Class StateMachine
State machine logic pattern
Inheritance
StateMachine
Assembly: FlaxEngine.dll
File: Engine/Utilities/StateMachine.h
Syntax
public class StateMachine
Constructors
~StateMachine()
Destructor
Declaration
public virtual ~StateMachine()
StateMachine()
Init
Declaration
public StateMachine()
Fields
_currentState
_states
Declaration
protected Array<State* > _states
Field Value
Array<State >
|
Methods
CurrentState()
GetStates()
Gets readonly states array
Declaration
public Array<State* >* GetStates() const
Returns
Array<State >
Array with states |
GoToState(int32 stateIndex)
Go to state
Declaration
public void GoToState(int32 stateIndex)
Parameters
int32
stateIndex
Target state index |
GoToState(State* state)
Go to state
Declaration
public virtual void GoToState(State* state)
Parameters
State
state
Target state |