laGame Class Reference

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)
laStagegetStage (unsigned n)
laStagegetStage (char *strName)
laStagegetActiveStage ()

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

Detailed Description

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.

Copyright (C) 2007-2013 Atanas Laskov, latan.nosp@m.as@g.nosp@m.mail..nosp@m.com

Definition at line 47 of file laGame.h.

The documentation for this class was generated from the following files: