Gel2D - The free/open source game creation suite

Public Member Functions
gel::GelGameState Class Reference

Game state object. More...

#include <gelGameState.h>

Inheritance diagram for gel::GelGameState:
gel::GelEventReceiver

List of all members.

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 ()

Detailed Description

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.


Constructor & Destructor Documentation

gel::GelGameState::GelGameState ( )
virtual gel::GelGameState::~GelGameState ( ) [inline, virtual]

Member Function Documentation

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]

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