A finite state machine. States are represented by KFSMState objects, and "events" (transitions between states) are represented by KFSMEvent objects.
More...
A finite state machine. States are represented by KFSMState objects, and "events" (transitions between states) are represented by KFSMEvent objects.
Add a new event (possible transition) to the finite state machine.
- Parameters
-
ev | The event to add. |
toStates | The states to add the event to. The event can only be triggered when the machine is in one of these states. |
Add a new event (possible transition) to the finite state machine.
- Parameters
-
ev | The event to add. |
excStates | A list of states not to add the event to. The event can only be triggered when the machine is not in one of these states. |
Add a new possible state to the machine.
- Parameters
-
void KerbalFSM.FixedUpdateFSM |
( |
| ) |
|
void KerbalFSM.LateUpdateFSM |
( |
| ) |
|
Cause the machine to execute the transition specified by evt.
- Parameters
-
void KerbalFSM.StartFSM |
( |
KFSMState |
initialState | ) |
|
Start the state machine in a given initial state.
- Parameters
-
initialState | The state to start in. |
void KerbalFSM.StartFSM |
( |
string |
initialStateName | ) |
|
Start the state machine in a given initial state.
- Parameters
-
initialStateName | The name of the state to start in |
void KerbalFSM.UpdateFSM |
( |
| ) |
|
void KerbalFSM.updateFSM |
( |
KFSMUpdateMode |
mode | ) |
|
|
protected |
string KerbalFSM.currentStateName |
The name of the state the machine is currently in.
bool KerbalFSM.DebugBreakOnStateChange |
bool KerbalFSM.fsmStarted |
|
protected |
string KerbalFSM.lastEventName |
The name of the last event that occurred.
The state the machine is currently in.
int KerbalFSM.FramesInCurrentState |
|
get |
How many frames the machine has been in this state.
The last event that occurred.
The state the machine was in before this state.
Whether the state machine has been started.
double KerbalFSM.TimeAtCurrentState |
|
get |
How long the machine has been in the current state, in seconds.
The documentation for this class was generated from the following file: