Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
KerbalFSM Class Reference
Inheritance diagram for KerbalFSM:
TutorialScenario.TutorialFSM

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< KFSMEventOnEventCalled = (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< KFSMStateStates
 

Properties

KFSMState CurrentState [get]
 
int FramesInCurrentState [get]
 
KFSMEvent LastEvent [get]
 
KFSMState LastState [get]
 
bool Started [get]
 
double TimeAtCurrentState [get]
 

Constructor & Destructor Documentation

KerbalFSM.KerbalFSM ( )
inline

Member Function Documentation

void KerbalFSM.AddEvent ( KFSMEvent  ev,
params KFSMState[]  toStates 
)
inline
void KerbalFSM.AddEventExcluding ( KFSMEvent  ev,
params KFSMState[]  excStates 
)
inline
void KerbalFSM.AddState ( KFSMState  st)
inline
void KerbalFSM.FixedUpdateFSM ( )
inline
void KerbalFSM.LateUpdateFSM ( )
inline
void KerbalFSM.RunEvent ( KFSMEvent  evt)
inline
void KerbalFSM.StartFSM ( string  initialStateName)
inline
void KerbalFSM.StartFSM ( KFSMState  initialState)
inline
void KerbalFSM.UpdateFSM ( )
inline
void KerbalFSM.updateFSM ( KFSMUpdateMode  mode)
inlineprotected

Member Data Documentation

KFSMState KerbalFSM.currentState
protected
string KerbalFSM.currentStateName
bool KerbalFSM.DebugBreakOnStateChange
bool KerbalFSM.fsmStarted
protected
KFSMEvent KerbalFSM.lastEvent
protected
string KerbalFSM.lastEventName
KFSMState KerbalFSM.lastState
protected
Callback<KFSMEvent> KerbalFSM.OnEventCalled = (evt) => { }

Called every time a registered event is called (before it does anything).

Callback<KFSMState, KFSMState, KFSMEvent> KerbalFSM.OnStateChange = (fromSt, toSt, evt) => { }

Called every time a registered event causes the FSM to change states

List<KFSMState> KerbalFSM.States
protected

Property Documentation

KFSMState KerbalFSM.CurrentState
get
int KerbalFSM.FramesInCurrentState
get
KFSMEvent KerbalFSM.LastEvent
get
KFSMState KerbalFSM.LastState
get
bool KerbalFSM.Started
get
double KerbalFSM.TimeAtCurrentState
get

The documentation for this class was generated from the following file: