

Public Member Functions | |
| GameManager () | |
| Constructor. | |
| ~GameManager () | |
| Deconstructor. | |
| void | init () |
| Initialises the GameManager. | |
| void | update () |
| Updates the GameManager. | |
| void | clear () |
| Clears the GameManager. | |
| void | grab () |
| Increases the reference counter. | |
| void | drop () |
| Decreases the reference counter. | |
| void | changeState (GameState *state) |
| Close the current state and change to the given state. | |
| void | pushState (GameState *state) |
| Pause the current state and change to the given state. | |
| void | popState () |
| Close the current state and resume the previous state. | |
| IrrlichtDevice * | getDevice () |
| Returns a pointer to the Irrlicht Device. | |
| IVideoDriver * | getDriver () |
| Returns a pointer to the Irrlicht driver. | |
| ISceneManager * | getSceneManager () |
| Returns a pointer to the Irrlicht SceneManager. | |
| IGUIEnvironment * | getGUIEnvironment () |
| Returns a pointer to the Irrlicht GUI Manager. | |
| AssetManager * | getAssetManager () |
| Returns a pointer to the AssetManager. | |
| DataStore * | getDataStore () |
| Returns a pointer to the DataStore. | |
| EntityManager * | getEntityManager () |
| Returns a pointer to the EntityManager. | |
| EventManager * | getEventManager () |
| Returns a pointer to the EventManager. | |
| ScriptManager * | getScriptManager () |
| Returns a pointer to the ScriptManager. | |
| SoundManager * | getSoundManager () |
| Returns a pointer to the Sound Manager. | |
| bool | getIsRunning () const |
| Returns whether the Irrlicht device is running. | |
| void | setIsRunning (bool value) |
| Sets the running state of the Irrlicht device. | |
Static Public Member Functions | |
| static GameManager * | Instance () |
| Returns a pointer to the singleton of the GameManager class. | |
| static GameManager & | Reference () |
| Returns a reference to the singleton of the GameManager class. | |
Definition at line 49 of file GameManager.h.
| GameManager::GameManager | ( | ) |
| GameManager::~GameManager | ( | ) |
| void GameManager::changeState | ( | GameState * | state | ) |
Close the current state and change to the given state.
| state | Pointer to the new state. |
Definition at line 167 of file GameManager.cpp.
| void GameManager::clear | ( | ) |
| void GameManager::drop | ( | ) | [virtual] |
Decreases the reference counter.
Reimplemented from ReferenceCounted.
Definition at line 161 of file GameManager.cpp.
| AssetManager * GameManager::getAssetManager | ( | ) |
| DataStore * GameManager::getDataStore | ( | ) |
| IrrlichtDevice * GameManager::getDevice | ( | ) |
Returns a pointer to the Irrlicht Device.
Definition at line 214 of file GameManager.cpp.
| IVideoDriver * GameManager::getDriver | ( | ) |
Returns a pointer to the Irrlicht driver.
Definition at line 220 of file GameManager.cpp.
| EntityManager * GameManager::getEntityManager | ( | ) |
| EventManager * GameManager::getEventManager | ( | ) |
| IGUIEnvironment * GameManager::getGUIEnvironment | ( | ) |
Returns a pointer to the Irrlicht GUI Manager.
Definition at line 232 of file GameManager.cpp.
| bool GameManager::getIsRunning | ( | ) | const |
| ISceneManager * GameManager::getSceneManager | ( | ) |
Returns a pointer to the Irrlicht SceneManager.
Definition at line 226 of file GameManager.cpp.
| ScriptManager * GameManager::getScriptManager | ( | ) |
| SoundManager * GameManager::getSoundManager | ( | ) |
| void GameManager::grab | ( | ) | [virtual] |
Increases the reference counter.
Reimplemented from ReferenceCounted.
Definition at line 155 of file GameManager.cpp.
| void GameManager::init | ( | ) |
| GameManager * GameManager::Instance | ( | ) | [static] |
Returns a pointer to the singleton of the GameManager class.
Definition at line 40 of file GameManager.cpp.
| void GameManager::popState | ( | ) |
Close the current state and resume the previous state.
Definition at line 198 of file GameManager.cpp.
| void GameManager::pushState | ( | GameState * | state | ) |
Pause the current state and change to the given state.
| state | Pointer to the new state. |
Definition at line 182 of file GameManager.cpp.
| GameManager & GameManager::Reference | ( | ) | [static] |
Returns a reference to the singleton of the GameManager class.
Definition at line 48 of file GameManager.cpp.
| void GameManager::setIsRunning | ( | bool | value | ) |
| void GameManager::update | ( | ) |
1.5.8