abstract state. More...
#include <State.h>
Inherited by StateEnd, StateLoop, StateSettings, and StateStart.

Public Member Functions | |
| virtual void | update () |
| virtual void | doPrint ()=0 |
| virtual void | doGetKey ()=0 |
| State () | |
| virtual | ~State () |
Protected Member Functions | |
| virtual void | clearConsole () |
Static Protected Attributes | |
| static GameContext * | gameContext = 0 |
abstract state.
Abstract state of state pattern. Defined all states.
Definition at line 9 of file State.h.
| virtual void State::clearConsole | ( | ) | [inline, protected, virtual] |
| virtual void State::doGetKey | ( | ) | [pure virtual] |
Use this Methode to get an input information. You have to override.
Implemented in StateEnd, StateLoop, StateSettings, and StateStart.

| virtual void State::doPrint | ( | ) | [pure virtual] |
Use this Methode to print state information. You have to override.
Implemented in StateEnd, StateLoop, StateSettings, and StateStart.

| virtual void State::update | ( | ) | [inline, virtual] |
Use this Methode to update the state before doPrint() or doGetKey() is called. You can override. Default implementation calls clearConsole().
Reimplemented in StateLoop.
Definition at line 13 of file State.h.


GameContext * State::gameContext = 0 [static, protected] |
1.6.1