Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
#include <EngineManager.h>
engine::EngineManager::EngineManager | ( | ) |
Constructor.
References engine::LogManager::createLog(), KG_VERSION, engine::LogManager::logMessage(), mEngineEvent, mEngineSettings, mInputManager, mLastUpdateEndTime, mLastUpdateStartTime, mLog, mLogManager, engine::Object::mObjectType, mOptionsFile, mPhysicsManager, mPlatformManager, mPluginManager, mPluginsFile, mRenderManager, mResourceManager, mResourcesFile, mSceneManager, mScriptManager, mSoundManager, mTimer, mUpdateGame, mVersion, mVersionString, and engine::OT_ENGINE_MANAGER.
engine::EngineManager::~EngineManager | ( | ) |
Destructor.
References engine::LogManager::logMessage(), mEngineEvent, mEngineSettings, mInputManager, mLogManager, mPhysicsManager, mPlatformManager, mPluginManager, mRenderManager, mResourceManager, mSceneManager, mScriptManager, and mSoundManager.
void engine::EngineManager::addEngineEventReceiver | ( | EngineEventReceiver * | newEventReceiver | ) |
References mEngineEventReceivers.
void engine::EngineManager::fireEngineInitialized | ( | ) | [protected] |
References mEngineEventReceivers.
Referenced by initializeImpl().
void engine::EngineManager::fireEngineStarted | ( | ) | [protected] |
References mEngineEventReceivers.
Referenced by start().
void engine::EngineManager::fireEngineStopped | ( | ) | [protected] |
References mEngineEventReceivers.
Referenced by stop().
void engine::EngineManager::fireEngineUninitialized | ( | ) | [protected] |
References mEngineEventReceivers.
Referenced by uninitializeImpl().
void engine::EngineManager::fireEngineUpdateEnded | ( | ) | [protected] |
References platform::Timer::getMilliseconds(), mEngineEvent, mEngineEventReceivers, mLastUpdateEndTime, mTimer, and engine::EngineEvent::timeSinceLastUpdate.
Referenced by updateImpl().
void engine::EngineManager::fireEngineUpdateStarted | ( | ) | [protected] |
References platform::Timer::getMilliseconds(), mEngineEvent, mEngineEventReceivers, mLastUpdateStartTime, mTimer, and engine::EngineEvent::timeSinceLastUpdate.
Referenced by updateImpl().
input::InputManager * engine::EngineManager::getInputManager | ( | ) |
References mInputManager.
EngineManager * engine::EngineManager::getInstance | ( | ) | [static] |
Get instance.
Reimplemented from core::Singleton< EngineManager >.
LogManager * engine::EngineManager::getLogManager | ( | ) |
References mLogManager.
physics::PhysicsManager * engine::EngineManager::getPhysicsManager | ( | ) |
References mPhysicsManager.
platform::PlatformManager * engine::EngineManager::getPlatformManager | ( | ) |
References mPlatformManager.
render::RenderManager * engine::EngineManager::getRenderManager | ( | ) |
References mRenderManager.
resource::ResourceManager * engine::EngineManager::getResourceManager | ( | ) |
References mResourceManager.
scene::SceneManager * engine::EngineManager::getSceneManager | ( | ) |
References mSceneManager.
script::ScriptManager * engine::EngineManager::getScriptManager | ( | ) |
References mScriptManager.
sound::SoundManager * engine::EngineManager::getSoundManager | ( | ) |
References mSoundManager.
const std::string & engine::EngineManager::getVersion | ( | ) | const |
References mVersion.
const std::string & engine::EngineManager::getVersionString | ( | ) | const |
References mVersionString.
void engine::EngineManager::initializeImpl | ( | ) | [protected, virtual] |
Reimplemented from engine::Object.
References fireEngineInitialized(), platform::PlatformManager::getTimer(), physics::PhysicsManager::initialize(), engine::Object::initialize(), loadOptions(), loadPlugins(), engine::LogManager::logMessage(), mInputManager, mLogManager, mPhysicsManager, mPlatformManager, mRenderManager, mResourceManager, mSceneManager, mScriptManager, mSoundManager, mTimer, registerDefaultFactories(), and setPaths().
bool engine::EngineManager::isRunning | ( | ) |
References mUpdateGame.
void engine::EngineManager::loadOptions | ( | ) | [protected] |
Method reads a game configuration file and instantiates all options.
References engine::EngineSettings::loadOptions(), mEngineSettings, and mOptionsFile.
Referenced by initializeImpl().
void engine::EngineManager::loadPlugins | ( | ) | [protected] |
Method reads a plugins configuration file and instantiates all plugins.
References engine::PluginManager::createPlugins(), engine::PluginManager::loadPlugins(), mPluginManager, and mPluginsFile.
Referenced by initializeImpl().
void engine::EngineManager::registerDefaultFactories | ( | ) | [protected] |
Method registers all the default factories from all the managers.
References mPhysicsManager, mRenderManager, mSceneManager, physics::PhysicsManager::registerDefaultFactories(), render::RenderManager::registerDefaultFactories(), and scene::SceneManager::registerDefaultFactories().
Referenced by initializeImpl().
void engine::EngineManager::removeDefaultFactories | ( | ) | [protected] |
Method removes all the default factories from all the managers.
References mPhysicsManager, mRenderManager, mSceneManager, physics::PhysicsManager::removeDefaultFactories(), render::RenderManager::removeDefaultFactories(), and scene::SceneManager::removeDefaultFactories().
Referenced by uninitializeImpl().
void engine::EngineManager::removeEngineEventReceiver | ( | EngineEventReceiver * | oldEventReceiver | ) |
References mEngineEventReceivers.
void engine::EngineManager::saveOptions | ( | ) | [protected] |
Method saves a game configuration file with all the instantiated options.
References mEngineSettings, mOptionsFile, and engine::EngineSettings::saveOptions().
Referenced by stop().
void engine::EngineManager::setOptionsFile | ( | const std::string & | optionsFile | ) |
References mOptionsFile.
void engine::EngineManager::setPaths | ( | ) | [protected] |
Method reads a plugins configuration file and instantiates all found resource search paths.
References mResourceManager, mResourcesFile, and resource::ResourceManager::setPaths().
Referenced by initializeImpl().
void engine::EngineManager::setPluginsFile | ( | const std::string & | pluginsFile | ) |
References mPluginsFile.
void engine::EngineManager::setResourcesFile | ( | const std::string & | resourcesFile | ) |
References mResourcesFile.
void engine::EngineManager::start | ( | ) |
References fireEngineStarted(), engine::Object::initialize(), resource::ResourceManager::loadResources(), engine::LogManager::logMessage(), mInputManager, mLogManager, mPhysicsManager, mPlatformManager, mRenderManager, mResourceManager, mSoundManager, mUpdateGame, sound::SoundManager::start(), physics::PhysicsManager::start(), render::RenderManager::start(), input::InputManager::start(), resource::ResourceManager::start(), and platform::PlatformManager::start().
void engine::EngineManager::stop | ( | ) |
References fireEngineStopped(), engine::LogManager::logMessage(), mInputManager, mLogManager, mPhysicsManager, mPlatformManager, mRenderManager, mResourceManager, mSoundManager, saveOptions(), platform::PlatformManager::stop(), resource::ResourceManager::stop(), input::InputManager::stop(), render::RenderManager::stop(), physics::PhysicsManager::stop(), sound::SoundManager::stop(), engine::Object::uninitialize(), and resource::ResourceManager::unloadResources().
void engine::EngineManager::stopRunning | ( | ) |
References mUpdateGame.
void engine::EngineManager::uninitializeImpl | ( | ) | [protected, virtual] |
Reimplemented from engine::Object.
References fireEngineUninitialized(), engine::LogManager::logMessage(), mInputManager, mLogManager, mPhysicsManager, mPlatformManager, mPluginManager, mRenderManager, mResourceManager, mSceneManager, mScriptManager, mSoundManager, removeDefaultFactories(), engine::Object::uninitialize(), and unloadPlugins().
void engine::EngineManager::unloadPlugins | ( | ) | [protected] |
Unloads all loaded plugins.
References mPluginManager, and engine::PluginManager::unloadPlugins().
Referenced by uninitializeImpl().
void engine::EngineManager::updateImpl | ( | f32 | elapsedTime | ) | [protected, virtual] |
Reimplemented from engine::Object.
References fireEngineUpdateEnded(), fireEngineUpdateStarted(), mEngineEvent, mInputManager, mPhysicsManager, mPlatformManager, mRenderManager, mResourceManager, mSceneManager, mSoundManager, mUpdateGame, engine::EngineEvent::timeSinceLastUpdate, and engine::Object::update().
EngineEvent * engine::EngineManager::mEngineEvent = NULL [static, protected] |
std::list< EngineEventReceiver * > engine::EngineManager::mEngineEventReceivers [static, protected] |
EngineSettings* engine::EngineManager::mEngineSettings [protected] |
Referenced by EngineManager(), loadOptions(), saveOptions(), and ~EngineManager().
input::InputManager* engine::EngineManager::mInputManager [protected] |
Referenced by EngineManager(), getInputManager(), initializeImpl(), start(), stop(), uninitializeImpl(), updateImpl(), and ~EngineManager().
u32 engine::EngineManager::mLastUpdateEndTime [protected] |
Referenced by EngineManager(), and fireEngineUpdateEnded().
u32 engine::EngineManager::mLastUpdateStartTime [protected] |
Referenced by EngineManager(), and fireEngineUpdateStarted().
Log* engine::EngineManager::mLog [protected] |
Referenced by EngineManager().
LogManager* engine::EngineManager::mLogManager [protected] |
Referenced by EngineManager(), getLogManager(), initializeImpl(), start(), stop(), uninitializeImpl(), and ~EngineManager().
std::string engine::EngineManager::mOptionsFile [protected] |
Referenced by EngineManager(), loadOptions(), saveOptions(), and setOptionsFile().
Referenced by EngineManager(), getPlatformManager(), initializeImpl(), start(), stop(), uninitializeImpl(), updateImpl(), and ~EngineManager().
PluginManager* engine::EngineManager::mPluginManager [protected] |
Referenced by EngineManager(), loadPlugins(), uninitializeImpl(), unloadPlugins(), and ~EngineManager().
std::string engine::EngineManager::mPluginsFile [protected] |
Referenced by EngineManager(), loadPlugins(), and setPluginsFile().
Referenced by EngineManager(), getResourceManager(), initializeImpl(), setPaths(), start(), stop(), uninitializeImpl(), updateImpl(), and ~EngineManager().
std::string engine::EngineManager::mResourcesFile [protected] |
Referenced by EngineManager(), setPaths(), and setResourcesFile().
scene::SceneManager* engine::EngineManager::mSceneManager [protected] |
Referenced by EngineManager(), getScriptManager(), initializeImpl(), uninitializeImpl(), and ~EngineManager().
sound::SoundManager* engine::EngineManager::mSoundManager [protected] |
Referenced by EngineManager(), getSoundManager(), initializeImpl(), start(), stop(), uninitializeImpl(), updateImpl(), and ~EngineManager().
platform::Timer* engine::EngineManager::mTimer [protected] |
Referenced by EngineManager(), fireEngineUpdateEnded(), fireEngineUpdateStarted(), and initializeImpl().
bool engine::EngineManager::mUpdateGame [protected] |
Game loop control.
Referenced by EngineManager(), isRunning(), start(), stopRunning(), and updateImpl().
std::string engine::EngineManager::mVersion [protected] |
Referenced by EngineManager(), and getVersion().
std::string engine::EngineManager::mVersionString [protected] |
Referenced by EngineManager(), and getVersionString().
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:07 by
Doxygen
(1.7.4)
|