Game Class Reference

#include <game.h>

Inheritance diagram for Game:

ConfigListener

List of all members.


Detailed Description

Definition at line 35 of file game.h.


Public Member Functions

 Game ()
 ~Game ()
void logic ()
void handleInput ()
void optionChanged (const std::string &name)
 Called when an option changed.

Private Attributes

int mDrawTime
 Used to determine whether to draw the next frame.
int mMinFrameTime
 The minimum frame time (used for frame limiting).
int mLastTarget
SDL_TimerID mLogicCounterId
SDL_TimerID mSecondsCounterId

Constructor & Destructor Documentation

Game::Game (  ) 

Definition at line 299 of file game.cpp.

Game::~Game (  ) 

Definition at line 354 of file game.cpp.


Member Function Documentation

void Game::logic (  ) 

Definition at line 435 of file game.cpp.

void Game::handleInput (  ) 

Definition at line 503 of file game.cpp.

void Game::optionChanged ( const std::string &  name  )  [virtual]

Called when an option changed.

The config listener will have to be registered to the option name first.

Implements ConfigListener.

Definition at line 425 of file game.cpp.


Member Data Documentation

int Game::mDrawTime [private]

Used to determine whether to draw the next frame.

Definition at line 50 of file game.h.

int Game::mMinFrameTime [private]

The minimum frame time (used for frame limiting).

Definition at line 53 of file game.h.

int Game::mLastTarget [private]

Definition at line 55 of file game.h.

SDL_TimerID Game::mLogicCounterId [private]

Definition at line 57 of file game.h.

SDL_TimerID Game::mSecondsCounterId [private]

Definition at line 58 of file game.h.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5