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

Public Member Functions

void AddPage (TutorialPage st)
 Adds the given state as a page on the tutorial. Pages are stored in sequence and stepped through using GoToNextPage. More...
 
void AddPages (System.Collections.Generic.List< TutorialPage > st)
 
void AddState (TutorialPage st)
 Adds the given state to the FSM, without making it part of the sequence. Pages added with this method can't be reached using GoToNextPage. More...
 
void GoToLastPage ()
 
void GoToNextPage ()
 
void StartTutorial (TutorialPage initialPage)
 
void StartTutorial (string initialPageName)
 
- Public Member Functions inherited from KerbalFSM
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

TutorialPage lastPage
 A reference to the last page accessed on this tutorial. Use when managing multiple special cases to return to the last actual page. More...
 
List< TutorialPagepages = new List<TutorialPage>()
 
- Public Attributes inherited from KerbalFSM
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...
 

Additional Inherited Members

- Protected Member Functions inherited from KerbalFSM
void updateFSM (KFSMUpdateMode mode)
 
- Protected Attributes inherited from KerbalFSM
KFSMState currentState
 
bool fsmStarted
 
KFSMEvent lastEvent
 
KFSMState lastState
 
List< KFSMStateStates
 
- Properties inherited from KerbalFSM
KFSMState CurrentState [get]
 
int FramesInCurrentState [get]
 
KFSMEvent LastEvent [get]
 
KFSMState LastState [get]
 
bool Started [get]
 
double TimeAtCurrentState [get]
 

Member Function Documentation

void TutorialScenario.TutorialFSM.AddPage ( TutorialPage  st)
inline

Adds the given state as a page on the tutorial. Pages are stored in sequence and stepped through using GoToNextPage.

void TutorialScenario.TutorialFSM.AddPages ( System.Collections.Generic.List< TutorialPage st)
inline
void TutorialScenario.TutorialFSM.AddState ( TutorialPage  st)
inline

Adds the given state to the FSM, without making it part of the sequence. Pages added with this method can't be reached using GoToNextPage.

void TutorialScenario.TutorialFSM.GoToLastPage ( )
inline
void TutorialScenario.TutorialFSM.GoToNextPage ( )
inline
void TutorialScenario.TutorialFSM.StartTutorial ( TutorialPage  initialPage)
inline
void TutorialScenario.TutorialFSM.StartTutorial ( string  initialPageName)
inline

Member Data Documentation

TutorialPage TutorialScenario.TutorialFSM.lastPage

A reference to the last page accessed on this tutorial. Use when managing multiple special cases to return to the last actual page.

List<TutorialPage> TutorialScenario.TutorialFSM.pages = new List<TutorialPage>()

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