Kerbal Space Program
1.12.4
|
Public Member Functions | |
void | AddEvent (KFSMEvent ev, params KFSMState[] toStates) |
void | AddEventExcluding (KFSMEvent ev, params KFSMState[] excStates) |
void | AddState (KFSMState st) |
void | FixedUpdateFSM () |
KerbalFSM () | |
void | LateUpdateFSM () |
void | RunEvent (KFSMEvent evt) |
void | StartFSM (string initialStateName) |
void | StartFSM (KFSMState initialState) |
void | UpdateFSM () |
Public Attributes | |
string | currentStateName |
bool | DebugBreakOnStateChange |
string | lastEventName |
Callback< KFSMEvent > | OnEventCalled = (evt) => { } |
Called every time a registered event is called (before it does anything). More... | |
Callback< KFSMState, KFSMState, KFSMEvent > | OnStateChange = (fromSt, toSt, evt) => { } |
Called every time a registered event causes the FSM to change states More... | |
Protected Member Functions | |
void | updateFSM (KFSMUpdateMode mode) |
Protected Attributes | |
KFSMState | currentState |
bool | fsmStarted |
KFSMEvent | lastEvent |
KFSMState | lastState |
List< KFSMState > | States |
Properties | |
KFSMState | CurrentState [get] |
int | FramesInCurrentState [get] |
KFSMEvent | LastEvent [get] |
KFSMState | LastState [get] |
bool | Started [get] |
double | TimeAtCurrentState [get] |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
protected |
string KerbalFSM.currentStateName |
bool KerbalFSM.DebugBreakOnStateChange |
|
protected |
|
protected |
string KerbalFSM.lastEventName |
|
protected |
Called every time a registered event is called (before it does anything).
Called every time a registered event causes the FSM to change states
|
protected |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |