Game state manager.
More...
#include <gelGameState.h>
List of all members.
Detailed Description
Game state manager.
GelGameStateManager provides a simple interface for managing GelGameStates.
The manager uses a doubly-linked list to store pointers to the scenes you've added, which can be referenced by their numerical indices in the provided functions.
Constructor & Destructor Documentation
gel::GelGameStateManager::GelGameStateManager |
( |
| ) |
[inline] |
Constructor.
This doesn't do anything. Maybe it will...someday.
Member Function Documentation
void gel::GelGameStateManager::addOverlayScene |
( |
GelGameState * |
scn | ) |
[inline] |
Adds a scene to the manager.
This will append a scene to the end of the list, and will be the last scene called for updating, drawing, etc.
- Parameters:
-
scn | : Pointer to a GelScene. |
void gel::GelGameStateManager::addUnderlayScene |
( |
GelGameState * |
scn | ) |
[inline] |
Adds a scene to the manager.
This will append a scene to the beginning of the list, and will be the first scene called for updating, drawing, etc.
- Parameters:
-
scn | : Pointer to a GelScene. |
void gel::GelGameStateManager::addScene |
( |
GelGameState * |
scn | ) |
[inline] |
Adds a scene to the manager.
This is a convenience function. It will add an overlay scene (that's what most people are likely to want).
- See also:
- addOverlayScene().
void gel::GelGameStateManager::removeScene |
( |
int |
index | ) |
[inline] |
Removes a scene from the manager.
- Parameters:
-
index | : The index of the scene to be removed. |
void gel::GelGameStateManager::updateAll |
( |
| ) |
|
void gel::GelGameStateManager::drawAll |
( |
| ) |
|
void gel::GelGameStateManager::pauseAll |
( |
| ) |
|
void gel::GelGameStateManager::resumeAll |
( |
| ) |
|
void gel::GelGameStateManager::restartAll |
( |
| ) |
|
void gel::GelGameStateManager::updateScene |
( |
int |
index | ) |
[inline] |
Updates a scene.
- Parameters:
-
index | : The index of the scene to update. |
void gel::GelGameStateManager::drawScene |
( |
int |
index | ) |
[inline] |
Draws a scene.
- Parameters:
-
index | : The index of the scene to draw. |
void gel::GelGameStateManager::pauseScene |
( |
int |
index | ) |
[inline] |
Pauses a scene.
- Parameters:
-
index | : The index of the scene to pause. |
void gel::GelGameStateManager::resumeScene |
( |
int |
index | ) |
[inline] |
Resumes a scene.
- Parameters:
-
index | : The index of the scene to resume. |
void gel::GelGameStateManager::restartScene |
( |
int |
index | ) |
[inline] |
Restarts a scene.
- Parameters:
-
index | : The index of the scene to restart. |
The documentation for this class was generated from the following file: