DoopelPonger
|
Public Member Functions | |
StateMachine (T defaultState, params StateInformation< T >[] transitionInformation) | |
void | DoAction () |
Trigger the action corresponding to the current state. More... | |
bool | ChangeState (T newState) |
StateMachine< T >.StateMachine | ( | T | defaultState, |
params StateInformation< T > [] | transitionInformation | ||
) |
defaultState | First state after being created. |
transitionInformation | All the states in the state machine with all their transitions and actions. |
bool StateMachine< T >.ChangeState | ( | T | newState | ) |
newState | New state that should be changed to. |
void StateMachine< T >.DoAction | ( | ) |
Trigger the action corresponding to the current state.