|
Orxonox
0.0.5 Codename: Arcturus
|
Main class responsible for running the game. More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/Game.h>
Classes | |
| class | GameStateFactory |
| struct | StatisticsTickInfo |
| class | TemplateGameStateFactory |
Public Member Functions | |
| Game (const std::string &cmdLine) | |
| ~Game ()=default | |
| Leave empty and use cleanup() instead. More... | |
| void | destroy () |
| Destructor that also executes when object fails to construct. More... | |
| float | getAvgFPS () |
| float | getAvgTickTime () |
| const Clock & | getGameClock () |
| std::shared_ptr< GameState > | getState (const std::string &name) |
| void | popState () |
| void | requestState (const std::string &name) |
| void | requestStates (const std::string &names) |
| void | run () |
| Main loop of the orxonox game. More... | |
| void | setStateHierarchy (const std::string &str) |
| void | stop () |
| void | subtractTickTime (int32_t length) |
Static Public Member Functions | |
| template<class T > | |
| static bool | declareGameState (const std::string &className, const std::string &stateName, bool bIgnoreTickTime, bool bConsoleMode) |
| static Game & | getInstance () |
Static Public Member Functions inherited from orxonox::Singleton< Game > | |
| static bool | exists () |
| Tells whether the singleton has been created. More... | |
| static Game & | getInstance () |
| Returns a reference to the singleton instance. More... | |
Private Types | |
| typedef std::map< std::string, std::shared_ptr< GameState > > | GameStateMap |
| typedef std::shared_ptr< GameStateTreeNode > | GameStateTreeNodePtr |
| typedef std::vector< std::shared_ptr< GameState > > | GameStateVector |
Private Member Functions | |
| Game (const Game &)=delete | |
| bool | checkState (const std::string &name) const |
| void | loadGraphics () |
| void | loadState (const std::string &name) |
| Game & | operator= (const Game &)=delete |
| void | parseStates (std::vector< std::pair< std::string, int >>::const_iterator &it, std::shared_ptr< GameStateTreeNode > currentNode) |
| void | resetChangingState () |
| void | unloadGraphics (bool loadGraphicsManagerWithoutRenderer=true) |
| void | unloadState (const std::string &name) |
| void | updateFPSLimiter () |
| void | updateGameStates () |
| void | updateGameStateStack () |
| void | updateStatistics () |
Private Attributes | |
| float | avgFPS_ |
| float | avgTickTime_ |
| bool | bAbort_ |
| bool | bChangingState_ |
| GameConfig * | config_ |
| Helper object that stores the config values. More... | |
| GameStateMap | constructedStates_ |
| Core * | core_ |
| DestructionHelper< Game > | destructionHelper_ |
| Helper object that executes the surrogate destructor destroy() More... | |
| int | excessSleepTime_ |
| Clock * | gameClock_ |
| GameStateVector | loadedStates_ |
| GameStateTreeNodePtr | loadedTopStateNode_ |
| unsigned int | minimumSleepTime_ |
| uint32_t | periodTickTime_ |
| uint32_t | periodTime_ |
| std::vector< GameStateTreeNodePtr > | requestedStateNodes_ |
| GameStateTreeNodePtr | rootStateNode_ |
| uint64_t | statisticsStartTime_ |
| std::list< StatisticsTickInfo > | statisticsTickTimes_ |
Static Private Attributes | |
| static std::map< std::string, GameStateInfo > | gameStateDeclarations_s |
| static Game * | singletonPtr_s = nullptr |
| Pointer to the Singleton. More... | |
Friends | |
| class | Singleton< Game > |
Additional Inherited Members | |
Protected Member Functions inherited from orxonox::Singleton< Game > | |
| Singleton () | |
| Constructor sets the singleton instance pointer. More... | |
| virtual | ~Singleton () |
| Destructor resets the singleton instance pointer. More... | |
Main class responsible for running the game.
|
private |
|
private |
|
private |
| orxonox::Game::Game | ( | const std::string & | cmdLine | ) |
|
default |
Leave empty and use cleanup() instead.
|
privatedelete |
|
private |
|
static |
| void orxonox::Game::destroy | ( | ) |
Destructor that also executes when object fails to construct.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
| std::shared_ptr< GameState > orxonox::Game::getState | ( | const std::string & | name | ) |
|
private |
|
private |
|
private |
| void orxonox::Game::popState | ( | ) |
| void orxonox::Game::requestState | ( | const std::string & | name | ) |
| void orxonox::Game::requestStates | ( | const std::string & | names | ) |
|
inlineprivate |
| void orxonox::Game::run | ( | ) |
Main loop of the orxonox game.
| void orxonox::Game::setStateHierarchy | ( | const std::string & | str | ) |
| void orxonox::Game::stop | ( | ) |
| void orxonox::Game::subtractTickTime | ( | int32_t | length | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Helper object that stores the config values.
|
private |
|
private |
|
private |
Helper object that executes the surrogate destructor destroy()
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.11