sdlvisu::Game Class Reference
[2D Graphical User Inteface]

Main class to create a new game.To destroy when a game is finished. Control all the game. More...

#include <Game.hh>

Inheritance diagram for sdlvisu::Game:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Game (SDLWindow &win, Api *api, App *app)
ApigetApi () const
const RulesCrutchgetRulesCrutch () const
InputgetInput () const
VirtualSurfacegetScreen () const
const InfoBargetInfoBar () const
MapgetMap () const
PanelgetPanel () const
bool isStateSet (enum eVisuGameState s) const
 Check if the specified state is set (ie, the one which have the higher priority);.
void setState (enum eVisuGameState s)
 Set a status in the list.
void unsetState (enum eVisuGameState s)
 Remove a status from the list of currently set status.
bool hasMoreSteps ()
 Check if the GUI is ready for handling a new event.
int gameStep ()
 Process one frame and return an application control.

Static Public Member Functions

static const char * stringify (enum eVisuGameState s)
static const char * stringify (enum eVisuGameCommand c)

Detailed Description

Main class to create a new game.

To destroy when a game is finished. Control all the game.


Member Function Documentation

int sdlvisu::Game::gameStep (  ) 

Process one frame and return an application control.

Returns:
2 to exit now, 1 to return to menu, 0 to continue.

Referenced by sdlvisu::VisuApp::run().

bool sdlvisu::Game::hasMoreSteps (  ) 

Check if the GUI is ready for handling a new event.

Returns:
true if the GUI needs more steps before a new event.

References Api::selectSkilledPlayer().

Referenced by sdlvisu::VisuApp::run().


The documentation for this class was generated from the following files:
Generated on Mon Apr 5 21:18:04 2010 for Stechec/TBT by  doxygen 1.6.3