JNR
|
Collection of laStage objects. More...
#include <laGame.h>
Public Member Functions | |
virtual void | onInit () |
virtual void | onFini () |
virtual void | onFrame (class laRenderer *pr, laInputManager *pi, laTimer *pt) |
void | addStage (laStage *pStage) |
void | setStage (unsigned n) |
void | setStage (char *strName) |
laStage * | getStage (unsigned n) |
laStage * | getStage (char *strName) |
laStage * | getActiveStage () |
Protected Member Functions | |
void | _switch_actions () |
Protected Attributes | |
std::vector< laStage * > | _vStages |
unsigned | _nActiveStage |
unsigned | _nSwitchStage |
M_BOOL | _bInitialized |
M_BOOL | _bFinalized |
M_BOOL | _bSwitchRequest |
Collection of laStage objects.
The laGame class manages several laStage classes, each representing a separate "act" of the game. For example, the main menu can be one stage and the actual game a second stage.
At any given moment only one stage can be active.