Method | Description | |
---|---|---|
AddState ( FsmState, s ) : void |
This method places new states inside the FSM, or prints an ERROR message if the state was already inside the List. First state added is also the initial state.
|
|
DeleteState ( FsmStateId id ) : void |
This method delete a state from the FSM List if it exists, or prints an ERROR message if the state was not on the List.
|
|
FsmSystem ( ) : System | ||
PerformTransition ( FsmTransitionId trans ) : void |
This method tries to change the state the FSM is in based on the current state and the transition passed. If current state doesn't have a target state for the transition passed, an ERROR message is printed.
|
|
Start ( ) : void |
Call this to trigger the before action on the first state in the list
|
public PerformTransition ( FsmTransitionId trans ) : void | ||
trans | FsmTransitionId | |
return | void |