abstract algorithm controls the game More...
#include <Game.h>
Inherited by GameContext.
Public Member Functions | |
| Game () | |
| bool | run () |
| void | finish () |
| virtual | ~Game () |
Protected Member Functions | |
| virtual bool | doInit ()=0 |
| virtual void | doPreProcess () |
| virtual void | doLoop ()=0 |
| virtual void | doPostProcess () |
abstract algorithm controls the game
This class use template method pattern.
Definition at line 5 of file Game.h.
| Game::Game | ( | ) |
| virtual bool Game::doInit | ( | ) | [protected, pure virtual] |
A primitive operation called one time to initialize some data. You have to override.
Implemented in GameContext.

| virtual void Game::doLoop | ( | ) | [protected, pure virtual] |
A primitive operation called in a loop until the finish() method stop the loop. You have to override.
Implemented in GameContext.

| virtual void Game::doPostProcess | ( | ) | [inline, protected, virtual] |
| virtual void Game::doPreProcess | ( | ) | [inline, protected, virtual] |
| void Game::finish | ( | ) |
| bool Game::run | ( | ) |
1.6.1