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

App Class Reference

Inheritance diagram for App:

Inheritance graph
[legend]
List of all members.

Public Types

enum  viewer { GAME, MENU, LOADSCREEN }

Public Member Functions

 App (const GAppSettings &settings=GAppSettings(), GWindow *wnd=0)
void cleanup ()
GameViewergetGameViewer ()
ONE::render::Renderer2DgetGuiRenderer ()
void init ()
void scheduleTask (class GameTask *, bool destroyAtFinish)
void screenShot () const
void showMouseCursor (bool)
void switchTo (viewer)
void toggleMouseCursor ()
 ~App ()

Public Attributes

DiscoverySettings * discoverySettingsP

Static Public Attributes

static const SDLKey SWITCH_VIEWER = SDLK_ESCAPE

Protected Member Functions

void main ()

Member Enumeration Documentation

enum App::viewer
 

Enumerator:
GAME 
MENU 
LOADSCREEN 


Constructor & Destructor Documentation

App::App const GAppSettings &  settings = GAppSettings(),
GWindow *  wnd = 0
 

App::~App  ) 
 


Member Function Documentation

void App::cleanup  ) 
 

GameViewer * App::getGameViewer  ) 
 

ONE::render::Renderer2D* App::getGuiRenderer  )  [inline]
 

void App::init  ) 
 

void App::main  )  [protected]
 

void App::scheduleTask class GameTask ,
bool  destroyAtFinish
 

This function switches to the load screen and then executes the given task in a separate thread. The function does not wait for the thread to finish. The given task will be destroyed after it finishes its operation if destroyAtFinish is true

void App::screenShot  )  const
 

void App::showMouseCursor bool   ) 
 

void App::switchTo viewer   ) 
 

Schedules a switch to the given applet. The switch is performed just before the next iteration of the main loop.

void App::toggleMouseCursor  ) 
 


Member Data Documentation

DiscoverySettings* App::discoverySettingsP
 

const SDLKey App::SWITCH_VIEWER = SDLK_ESCAPE [static]
 


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