Class State
State machine state
Inheritance
State
Assembly: FlaxEngine.dll
File: Engine/Utilities/StateMachine.h
Syntax
public class State
Constructors
~State()
Destructor
Declaration
protected ~State()
State(StateMachine* parent)
Init
Declaration
protected State(StateMachine* parent)
Parameters
StateMachine
parent
Parent state machine |
Fields
_parent
Methods
CanEnter()
Checks if can enter to that state
Declaration
public virtual bool CanEnter() const
Returns
bool
True if can enter to that state, otherwise false |
CanExit(State* nextState)
Checks if can exit from that state
Declaration
public virtual bool CanExit(State* nextState) const
Parameters
State
nextState
Next state to enter after exit from the current state |
Returns
bool
True if can exit from that state, otherwise false |
enterState()
Declaration
protected virtual void enterState()
exitState()
Declaration
protected virtual void exitState()
IsActive()
State's activity
Declaration
public bool IsActive() const
Returns
bool
True if state is active, otherwise false |