Game state object. More...
#include <gelGameState.h>
Public Member Functions | |
GelGameState () | |
virtual | ~GelGameState () |
virtual void | init ()=0 |
virtual void | cleanup ()=0 |
virtual void | pause () |
virtual void | resume () |
virtual void | restart ()=0 |
virtual void | update ()=0 |
virtual void | render ()=0 |
bool | isPaused () |
Game state object.
All games contain multiple 'game states'.
When you first start a game there's usually an intro scene (1), then the main menu starts (2). There could also be game states for different submenus as well (...).
Then there's a state for the actually gameplay (3), maybe even for each level in the game (...). You get the picture, there are lots of game states. Inheriting GelGameState makes it easy to create and manage them.
Geez, that was a lame explanation.
gel::GelGameState::GelGameState | ( | ) |
virtual gel::GelGameState::~GelGameState | ( | ) | [inline, virtual] |
virtual void gel::GelGameState::init | ( | ) | [pure virtual] |
virtual void gel::GelGameState::cleanup | ( | ) | [pure virtual] |
virtual void gel::GelGameState::pause | ( | ) | [inline, virtual] |
virtual void gel::GelGameState::resume | ( | ) | [inline, virtual] |
virtual void gel::GelGameState::restart | ( | ) | [pure virtual] |
virtual void gel::GelGameState::update | ( | ) | [pure virtual] |
virtual void gel::GelGameState::render | ( | ) | [pure virtual] |
bool gel::GelGameState::isPaused | ( | ) | [inline] |
API Documentation by Mark D. Procarione | Generated by |