
Public Member Functions | |
| GameManager () | |
| Constructor. | |
| ~GameManager () | |
| Deconstructor. | |
| void | init () |
| Initialises the GameManager. | |
| void | update () |
| Updates the GameManager. | |
| void | clear () |
| Clears the GameManager. | |
| void | refAdd () |
| Increases the reference counter. | |
| void | refRelease () |
| Decreases the reference counter. | |
| void | changeState (GameState *state) |
| Close the current state and change to the given state. | |
| void | changeState (asIScriptObject *object) |
| 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 | pushState (asIScriptObject *object) |
| 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. | |
| 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. | |
| static GameManager * | refFactory () |
| Will be used to instanciate objects of this class. | |
Definition at line 40 of file GameManager.h.
| GameManager::GameManager | ( | ) |
| GameManager::~GameManager | ( | ) |
| void GameManager::changeState | ( | asIScriptObject * | object | ) |
Close the current state and change to the given state.
Definition at line 166 of file GameManager.cpp.
| void GameManager::changeState | ( | GameState * | state | ) |
Close the current state and change to the given state.
| state | Pointer to the new state. |
Definition at line 152 of file GameManager.cpp.
| void GameManager::clear | ( | ) |
| DataStore * GameManager::getDataStore | ( | ) |
| IrrlichtDevice * GameManager::getDevice | ( | ) |
Returns a pointer to the Irrlicht Device.
Definition at line 228 of file GameManager.cpp.
| IVideoDriver * GameManager::getDriver | ( | ) |
Returns a pointer to the Irrlicht driver.
Definition at line 234 of file GameManager.cpp.
| EntityManager * GameManager::getEntityManager | ( | ) |
| EventManager * GameManager::getEventManager | ( | ) |
| IGUIEnvironment * GameManager::getGUIEnvironment | ( | ) |
Returns a pointer to the Irrlicht GUI Manager.
Definition at line 246 of file GameManager.cpp.
| bool GameManager::getIsRunning | ( | ) | const |
| ISceneManager * GameManager::getSceneManager | ( | ) |
Returns a pointer to the Irrlicht SceneManager.
Definition at line 240 of file GameManager.cpp.
| ScriptManager * GameManager::getScriptManager | ( | ) |
| SoundManager * GameManager::getSoundManager | ( | ) |
| void GameManager::init | ( | ) |
| GameManager * GameManager::Instance | ( | ) | [static] |
Returns a pointer to the singleton of the GameManager class.
Definition at line 39 of file GameManager.cpp.
| void GameManager::popState | ( | ) |
Close the current state and resume the previous state.
Definition at line 212 of file GameManager.cpp.
| void GameManager::pushState | ( | asIScriptObject * | object | ) |
Pause the current state and change to the given state.
Definition at line 196 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 181 of file GameManager.cpp.
| void GameManager::refAdd | ( | ) |
Increases the reference counter.
Definition at line 140 of file GameManager.cpp.
| GameManager & GameManager::Reference | ( | ) | [static] |
Returns a reference to the singleton of the GameManager class.
Definition at line 47 of file GameManager.cpp.
| GameManager * GameManager::refFactory | ( | ) | [static] |
Will be used to instanciate objects of this class.
Definition at line 134 of file GameManager.cpp.
| void GameManager::refRelease | ( | ) |
Decreases the reference counter.
Definition at line 146 of file GameManager.cpp.
| void GameManager::setIsRunning | ( | bool | value | ) |
| void GameManager::update | ( | ) |
1.5.8