Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

GameViewer Class Reference

Inheritance diagram for GameViewer:

Inheritance graph
[legend]
List of all members.

Detailed Description

main viewer

Displays the game.

Author:
Constantin Christmann

Andreas Hallerbach

Henning Hamer

Manuel Kugelmann

Marek Lomnic

Daniel Seibert

Torsten Treffer

Stefan Winkler

Sebastian Zipp


Public Types

enum  { SCREENSHOT = 0xf000, INPUT_CAPTURE }

Public Member Functions

void cleanup ()
 called when the applet is deactivated
void close ()
void doGraphics ()
virtual void doLogic ()
void doNetwork ()
void doSimulation (SimTime dt)
 GameViewer (App *app)
void init ()
 called when the applet is activated
void mainLoopBody ()
virtual void processControlEvent (ONE::util::ControlEvent &)
void processEvent (const SDL_Event &)
 ~GameViewer ()

Static Public Member Functions

static void getLines (const std::string &, std::vector< std::string > &)
static void showErrorMessage (const std::string &)

Static Public Attributes

static int DIE = 6
static int DO_SPECIAL = 97
static int DONT_FALL = 96
static int FALL = 4
static int FALLHIGH = 98
static int GET_BONUS = 11
static int IDLE = 0
static int IDLE2 = 15
static int IDLE3 = 16
static int LAND = 5
static int LOSE = 10
static int LOSE2 = 17
static int RUN = 3
static int SPECIAL1 = 12
static int SPECIAL2 = 13
static int SPECIAL3 = 14
static int WALK = 1
static int WALK_LEFT = 7
static int WALK_RIGHT = 8
static int WALKBACK = 2
static int WIN = 9

Protected Attributes

Appapp
GUISet gui


Member Enumeration Documentation

anonymous enum [inherited]
 

Enumerator:
SCREENSHOT 
INPUT_CAPTURE 


Constructor & Destructor Documentation

GameViewer::GameViewer App app  ) 
 

GameViewer::~GameViewer  ) 
 


Member Function Documentation

void GameViewer::cleanup  )  [virtual]
 

called when the applet is deactivated

Reimplemented from AppletViewer.

void AppletViewer::close  )  [inherited]
 

void GameViewer::doGraphics  ) 
 

void AppletViewer::doLogic  )  [virtual, inherited]
 

void GameViewer::doNetwork  ) 
 

void GameViewer::doSimulation SimTime  dt  ) 
 

void AppletViewer::getLines const std::string &  ,
std::vector< std::string > & 
[static, inherited]
 

void GameViewer::init  )  [virtual]
 

called when the applet is activated

Reimplemented from AppletViewer.

void GameViewer::mainLoopBody  )  [virtual]
 

Reimplemented from AppletViewer.

void AppletViewer::processControlEvent ONE::util::ControlEvent  )  [virtual, inherited]
 

Implements ONE::util::ControlListener.

void GameViewer::processEvent const SDL_Event &   )  [virtual]
 

Reimplemented from AppletViewer.

void AppletViewer::showErrorMessage const std::string &   )  [static, inherited]
 


Member Data Documentation

App* AppletViewer::app [protected, inherited]
 

int GameViewer::DIE = 6 [static]
 

int GameViewer::DO_SPECIAL = 97 [static]
 

int GameViewer::DONT_FALL = 96 [static]
 

int GameViewer::FALL = 4 [static]
 

int GameViewer::FALLHIGH = 98 [static]
 

int GameViewer::GET_BONUS = 11 [static]
 

GUISet AppletViewer::gui [protected, inherited]
 

int GameViewer::IDLE = 0 [static]
 

int GameViewer::IDLE2 = 15 [static]
 

int GameViewer::IDLE3 = 16 [static]
 

int GameViewer::LAND = 5 [static]
 

int GameViewer::LOSE = 10 [static]
 

int GameViewer::LOSE2 = 17 [static]
 

int GameViewer::RUN = 3 [static]
 

int GameViewer::SPECIAL1 = 12 [static]
 

int GameViewer::SPECIAL2 = 13 [static]
 

int GameViewer::SPECIAL3 = 14 [static]
 

int GameViewer::WALK = 1 [static]
 

int GameViewer::WALK_LEFT = 7 [static]
 

int GameViewer::WALK_RIGHT = 8 [static]
 

int GameViewer::WALKBACK = 2 [static]
 

int GameViewer::WIN = 9 [static]
 


Generated on Wed Sep 7 19:03:46 2005 for AnimalRace by  doxygen 1.4.3