Méthode | Description | |
---|---|---|
CreateStack ( String stackName, |
Creates a new stack within the StateMachine.
|
|
DestroyStack ( String stackName ) : void |
Destroys any non-main, currently inactive stack.
|
|
GameLoopTick ( Sharplike loop ) : System.Boolean | ||
PopState ( ) : |
Pops a state off of the currently active stack. Control flow will return to the next most recent state in the stack, or will terminate execution of the game the last state in the main stack is popped.
|
|
PopState ( String stackName ) : |
Pops a state off of any specified stack. Execution of the game will terminate if the last state is popped from the main stack, and an exception will be thrown if the last state in any other stack is popped.
|
|
PushState ( |
Pushes a state onto the currently active stack (making it the new running state).
|
|
PushState ( String stackName, |
Pushes a state onto the specified stack.
|
|
StateMachine ( |
Constructor.
|
|
SwitchStack ( String stackName ) : void |
Switches execution of the state machine to the specified stack.
|
Méthode | Description | |
---|---|---|
GameProcessing ( object sender, |
||
InputSystem_CommandEnded ( object sender, Input e ) : void | ||
InputSystem_CommandStarted ( object sender, Input e ) : void | ||
InputSystem_CommandTriggered ( object sender, Input e ) : void |
public CreateStack ( String stackName, |
||
stackName | String | The string key for the new stack. |
rootState | The start state for the new stack. | |
Résultat | void |
public DestroyStack ( String stackName ) : void | ||
stackName | String | The string key of the stack to destroy. |
Résultat | void |
public GameLoopTick ( Sharplike loop ) : System.Boolean | ||
loop | Sharplike | |
Résultat | System.Boolean |
public PopState ( String stackName ) : |
||
stackName | String | The stack from which to pop a state. |
Résultat |
public PushState ( |
||
newState | The state to add to the currently active stack. | |
Résultat | void |
public PushState ( String stackName, |
||
stackName | String | The stack on which to place the state. |
newState | The state to add to the specified stack. | |
Résultat | void |
public StateMachine ( |
||
rootState | The root state to start the StateMachine on. | |
Résultat | System |
public SwitchStack ( String stackName ) : void | ||
stackName | String | The string key of the stack to which the state machine shall switch execution. |
Résultat | void |