Main class to create a new game.To destroy when a game is finished. Control all the game. More...
#include <Game.hh>

Public Member Functions | |
| Game (SDLWindow &win, Api *api, App *app) | |
| Api * | getApi () const |
| const RulesCrutch & | getRulesCrutch () const |
| Input & | getInput () const |
| VirtualSurface & | getScreen () const |
| const InfoBar & | getInfoBar () const |
| Map & | getMap () const |
| Panel & | getPanel () 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) |
Main class to create a new game.
To destroy when a game is finished. Control all the game.
| int sdlvisu::Game::gameStep | ( | ) |
Process one frame and return an application control.
Referenced by sdlvisu::VisuApp::run().
| bool sdlvisu::Game::hasMoreSteps | ( | ) |
Check if the GUI is ready for handling a new event.
References Api::selectSkilledPlayer().
Referenced by sdlvisu::VisuApp::run().
1.6.3