#include <game.h>
Inherits Module, VideoModule, and ConfigListener.
Public Member Functions | |
Game () | |
~Game () | |
void | Draw (SDL_Surface *screen) |
bool | Load () |
bool | Unload () |
bool | Update () |
void * | AskFor (std::string data) |
void | GetSignal (std::string name) |
void | SettingChanged (std::string name) |
Private Member Functions | |
void | Input () |
void | KiCalc () |
void | NewRound () |
void | Clear () |
void | VSPlayerLogic () |
void | VSCpuLogic () |
Private Attributes | |
ObjectManager | m_manager |
int | m_p1points |
int | m_p2points |
Game::Game | ( | ) | [inline] |
Game::~Game | ( | ) | [inline] |
void Game::Draw | ( | SDL_Surface * | screen | ) | [virtual] |
Implements VideoModule.
bool Game::Load | ( | ) | [virtual] |
Called, when the module is loaded by the Resource Manager ( or another class)
Implements Module.
bool Game::Unload | ( | ) | [virtual] |
Called, when the module is to be updated the Resource Manager ( or another class)
Implements Module.
bool Game::Update | ( | ) | [virtual] |
Called, when the module is unloaded the Resource Manager ( or another class)
Implements Module.
void * Game::AskFor | ( | std::string | data | ) | [virtual] |
A Function that is called to become a specified pointer
data | the key to specify what you want |
Reimplemented from Module.
void Game::GetSignal | ( | std::string | name | ) | [virtual] |
Called, when a signal is sent to the module
name | the name of the signal |
Reimplemented from Module.
void Game::SettingChanged | ( | std::string | name | ) | [inline, virtual] |
Implements ConfigListener.
void Game::Input | ( | ) | [private] |
void Game::KiCalc | ( | ) | [private] |
void Game::NewRound | ( | ) | [private] |
void Game::Clear | ( | ) | [private] |
void Game::VSPlayerLogic | ( | ) | [private] |
void Game::VSCpuLogic | ( | ) | [private] |
ObjectManager Game::m_manager [private] |
int Game::m_p1points [private] |
int Game::m_p2points [private] |