Functions
FSM_SetState
void FSM_SetState(
FSM_State* state
)

Set current state and handle transition Should not be called from Begin/End callbacks

Parameters
state
FSM_State*

The new state to be set

FSM_GetState
inline FSM_State* FSM_GetState()

Get current state

Return

The current state

FSM_SetPrevious
inline void FSM_SetPrevious()

Reset previous state Should not be called from Begin/End callbacks

FSM_GetPrevious
inline FSM_State* FSM_GetPrevious()

Get previous state

Return

The previous state

FSM_Update
void FSM_Update()

Update the current state

FSM_IsPending
inline bool FSM_IsPending()

Is a new state is pending

FSM_GetPending
inline FSM_State* FSM_GetPending()

Get the pending state