StateManager
Constructor Summary
Public Constructor | ||
public |
constructor(pStates: Object<State>) Creates a new state machine manager. |
Member Summary
Public Members | ||
public |
version: * The version of the module. |
Private Members | ||
private |
The current state of the state machine. |
|
private |
The logger module this module uses to log errors / logs. |
|
private |
An object containing all the registered states. |
Method Summary
Public Methods | ||
public |
getCurrentState(): * Gets the current state. |
|
public |
registerState(pName: string, pState: State) Registers a new state with the state machine. |
|
public |
Sets the current state of the state machine. |
|
public |
Updates the current state of the state machine. |
Public Constructors
Public Members
Private Members
Public Methods
public registerState(pName: string, pState: State) source
Registers a new state with the state machine.