TriEngine
v0.0.16
General-purpose engine in C#/OpenGL
|
Game state manager that keeps track of the active game states and provides methods to control the states. More...
Public Member Functions | |
IGameState | Push (IGameState state) |
Pushes a new game state onto the stack, pausing the current one. More... | |
IGameState | Pop () |
Pops the currently active state from the stack, unpausing the previous one. More... | |
IGameState | Peek () |
Returns the game state at the top of the stack, without popping it. More... | |
IGameState | Switch (IGameState state) |
Switches to a new game state, discarding all previous ones in the stack. More... | |
Public Member Functions inherited from TriDevs.TriEngine.Interfaces.IUpdatable | |
void | Update () |
Updates the object. More... | |
Public Member Functions inherited from TriDevs.TriEngine.Interfaces.IDrawable | |
void | Draw () |
Draw the object to screen. More... | |
Properties | |
int | StateCount [get] |
Gets the number of game states currently in the stack. More... | |
IGameState | ActiveState [get] |
Gets the currently active game state. More... | |
Game state manager that keeps track of the active game states and provides methods to control the states.
IGameState TriDevs.TriEngine.StateManagement.IGameStateManager.Peek | ( | ) |
Returns the game state at the top of the stack, without popping it.
Implemented in TriDevs.TriEngine.StateManagement.GameStateManager.
IGameState TriDevs.TriEngine.StateManagement.IGameStateManager.Pop | ( | ) |
Pops the currently active state from the stack, unpausing the previous one.
Implemented in TriDevs.TriEngine.StateManagement.GameStateManager.
IGameState TriDevs.TriEngine.StateManagement.IGameStateManager.Push | ( | IGameState | state | ) |
Pushes a new game state onto the stack, pausing the current one.
state | The new game state to push onto the stack. |
Implemented in TriDevs.TriEngine.StateManagement.GameStateManager.
IGameState TriDevs.TriEngine.StateManagement.IGameStateManager.Switch | ( | IGameState | state | ) |
Switches to a new game state, discarding all previous ones in the stack.
state | The new state to switch to. |
Implemented in TriDevs.TriEngine.StateManagement.GameStateManager.
|
get |
Gets the currently active game state.
|
get |
Gets the number of game states currently in the stack.