#include <engine.h>

Public Member Functions | |
| Engine () | |
| virtual | ~Engine () |
| EngineSettings & | getSettings () |
| const DeviceCaps & | getDeviceCaps () const |
| Image * | changeScreenMode (const ScreenMode &mode) |
| void | init () |
| void | destroy () |
| void | initializePumping () |
| void | finalizePumping () |
| void | pump () |
| SoundManager * | getSoundManager () const |
| EventManager * | getEventManager () const |
| TimeManager * | getTimeManager () const |
| GUIManager * | getGuiManager () const |
| ImagePool * | getImagePool () const |
| AnimationPool * | getAnimationPool () const |
| SoundClipPool * | getSoundClipPool () const |
| RenderBackend * | getRenderBackend () const |
| Model * | getModel () const |
| LogManager * | getLogManager () const |
| GuiFont * | getDefaultFont () const |
| VFS * | getVFS () const |
| Cursor * | getCursor () const |
| void | addChangeListener (IEngineChangeListener *listener) |
| void | removeChangeListener (IEngineChangeListener *listener) |
Engine acts as a controller to the whole system Responsibilities of the engine are:
Definition at line 84 of file engine.h.
| FIFE::Engine::Engine | ( | ) |
Constructor
Definition at line 84 of file engine.cpp.
| FIFE::Engine::~Engine | ( | ) | [virtual] |
Destructor
Definition at line 299 of file engine.cpp.
| void FIFE::Engine::addChangeListener | ( | IEngineChangeListener * | listener | ) |
Adds new change listener
| listener | to add |
Definition at line 379 of file engine.cpp.
References FIFE::RenderBackend::enableLighting().
| Image * FIFE::Engine::changeScreenMode | ( | const ScreenMode & | mode | ) |
Changes the screen mode. This should be called instead of the renderer's setScreenMode() function. It takes care of any objects that need to be re-created after switching screen modes.
| mode | A valid ScreenMode retrieved from FIFE::DeviceCaps::getNearestScreenMode() |
Definition at line 126 of file engine.cpp.
| void FIFE::Engine::destroy | ( | ) |
Explicit destruction of engine
Definition at line 305 of file engine.cpp.
| void FIFE::Engine::finalizePumping | ( | ) |
Finalizes the continuous processing of the engine Call this only once in your program, after you have called initializePumping + (pump() * N times)
Definition at line 375 of file engine.cpp.
| AnimationPool* FIFE::Engine::getAnimationPool | ( | ) | const [inline] |
Provides access point to the AnimationPool
| Cursor* FIFE::Engine::getCursor | ( | ) | const [inline] |
| GuiFont* FIFE::Engine::getDefaultFont | ( | ) | const [inline] |
| const DeviceCaps & FIFE::Engine::getDeviceCaps | ( | ) | const |
Gets device capabilities
Definition at line 122 of file engine.cpp.
| EventManager* FIFE::Engine::getEventManager | ( | ) | const [inline] |
Provides access point to the EventManager
| GUIManager* FIFE::Engine::getGuiManager | ( | ) | const [inline] |
| ImagePool* FIFE::Engine::getImagePool | ( | ) | const [inline] |
| LogManager* FIFE::Engine::getLogManager | ( | ) | const [inline] |
Provides access point to the LogManager
| Model* FIFE::Engine::getModel | ( | ) | const [inline] |
| RenderBackend* FIFE::Engine::getRenderBackend | ( | ) | const [inline] |
Provides access point to the RenderBackend
| EngineSettings & FIFE::Engine::getSettings | ( | ) |
Gets settings class for engine
Definition at line 118 of file engine.cpp.
| SoundClipPool* FIFE::Engine::getSoundClipPool | ( | ) | const [inline] |
Provides access point to the SoundClipPool
| SoundManager* FIFE::Engine::getSoundManager | ( | ) | const [inline] |
| TimeManager* FIFE::Engine::getTimeManager | ( | ) | const [inline] |
Provides access point to the TimeManager
| VFS* FIFE::Engine::getVFS | ( | ) | const [inline] |
| void FIFE::Engine::init | ( | ) |
Initializes the engine
Definition at line 169 of file engine.cpp.
| void FIFE::Engine::initializePumping | ( | ) |
Initializes the continuous processing of the engine Call this only once in your program
Definition at line 346 of file engine.cpp.
| void FIFE::Engine::pump | ( | ) |
Runs one cycle for the engine
Definition at line 350 of file engine.cpp.
| void FIFE::Engine::removeChangeListener | ( | IEngineChangeListener * | listener | ) |
Removes associated change listener
| listener | to remove |
Definition at line 383 of file engine.cpp.
1.6.3