Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
#include <Object.h>
Public Member Functions | |
void | addDependency (Object *object) |
Adds an object to the Object dependency list. | |
const u32 & | getID () const |
Returns the id of the object. | |
const std::string & | getName () const |
const ObjectType & | getObjectType () const |
Gets object type. | |
void | initialize () |
Initialize object. | |
bool | isInitialized () const |
Returns true if the Object has been initialized. | |
Object (const std::string &name) | |
Object () | |
void | removeAllDependencies () |
void | removeDependency (Object *object) |
void | setName (const std::string &name) |
void | uninitialize () |
Uninitialize object. | |
void | update (f32 elapsedTime) |
~Object () | |
Protected Member Functions | |
virtual void | initializeImpl () |
virtual void | uninitializeImpl () |
virtual void | updateImpl (f32 elapsedTime) |
Protected Attributes | |
bool | mChangeableName |
std::map< u32, Object * > | mDependencyObjects |
u32 | mID |
bool | mIsInitialized |
std::string | mName |
ObjectType | mObjectType |
Static Protected Attributes | |
static u32 | mIndexCounter = 0 |
static u32 | msNextGeneratedObjectIndex = 0 |
Incremented count for next object index. |
engine::Object::Object | ( | ) |
References core::intToString(), mChangeableName, mID, mIndexCounter, mIsInitialized, mName, mObjectType, msNextGeneratedObjectIndex, and engine::OT_UNDEFINED.
engine::Object::Object | ( | const std::string & | name | ) |
References mChangeableName, mID, mIndexCounter, mIsInitialized, mName, mObjectType, and engine::OT_UNDEFINED.
engine::Object::~Object | ( | ) |
References removeAllDependencies().
void engine::Object::addDependency | ( | Object * | object | ) |
Adds an object to the Object dependency list.
References initialize(), mDependencyObjects, and mIsInitialized.
Referenced by physics::Body::Body(), physics::PhysicsManager::createBody(), physics::Joint::setActors(), physics::Body::setBodyData(), and render::Model::setMeshData().
const u32 & engine::Object::getID | ( | ) | const |
Returns the id of the object.
References mID.
Referenced by scene::Node::addChild(), scene::SceneManager::addNode(), physics::PhysicsManager::createBody(), render::RenderManager::createCamera(), scene::Node::createChild(), render::RenderManager::createFont(), input::InputManager::createInputDevice(), physics::PhysicsManager::createJoint(), render::RenderManager::createLight(), sound::SoundManager::createListener(), engine::LogManager::createLog(), physics::PhysicsManager::createMaterial(), render::RenderManager::createModel(), scene::SceneManager::createNode(), render::RenderManager::createPanelOverlay(), engine::PluginManager::createPlugin(), render::RenderManager::createRenderable(), render::RenderManager::createRenderWindow(), resource::ResourceManager::createResource(), scene::SceneManager::createScene(), script::ScriptManager::createScript(), render::RenderManager::createShader(), sound::SoundManager::createSound(), render::RenderManager::createTextOverlay(), render::RenderTarget::createViewport(), render::RenderManager::findVisibleRenderables(), engine::PluginManager::loadPlugin(), resource::ResourceManager::loadResource(), engine::LogManager::pushLog(), engine::PluginManager::reloadPlugin(), resource::ResourceManager::reloadResource(), scene::Scene::removeAllNodes(), physics::PhysicsManager::removeBody(), render::RenderManager::removeCamera(), scene::Node::removeChild(), removeDependency(), render::RenderManager::removeFont(), input::InputManager::removeInputDevice(), physics::PhysicsManager::removeJoint(), render::RenderManager::removeLight(), sound::SoundManager::removeListener(), engine::LogManager::removeLog(), render::RenderManager::removeModel(), scene::SceneManager::removeNode(), render::RenderManager::removeOverlay(), render::RenderManager::removeRenderable(), resource::ResourceManager::removeResource(), scene::SceneManager::removeScene(), script::ScriptManager::removeScript(), render::RenderManager::removeShader(), sound::SoundManager::removeSound(), render::RenderTarget::removeViewport(), render::RenderManager::render(), engine::PluginManager::unloadPlugin(), and resource::ResourceManager::unloadResource().
const std::string & engine::Object::getName | ( | ) | const |
References mName.
Referenced by engine::PluginManager::createPlugin(), resource::ResourceManager::createResource(), engine::PluginManager::loadPlugin(), resource::ResourceManager::loadResource(), engine::PluginManager::reloadPlugin(), resource::ResourceManager::reloadResource(), engine::PluginManager::unloadPlugin(), and resource::ResourceManager::unloadResource().
const ObjectType & engine::Object::getObjectType | ( | ) | const |
Gets object type.
References mObjectType.
void engine::Object::initialize | ( | ) |
Initialize object.
Reimplemented in physics::PhysicsManager.
References initializeImpl(), mDependencyObjects, and mIsInitialized.
Referenced by addDependency(), engine::EngineManager::initializeImpl(), resource::Resource::load(), render::PanelOverlay::PanelOverlay(), sound::Sound::resourceLoaded(), render::Model::resourceLoaded(), engine::EngineManager::start(), and render::TextOverlay::TextOverlay().
void engine::Object::initializeImpl | ( | ) | [protected, virtual] |
Reimplemented in engine::EngineManager, input::InputManager, physics::Body, physics::PhysicsManager, platform::PlatformManager, render::PanelOverlay, render::RenderManager, render::TextOverlay, resource::ResourceManager, scene::SceneManager, script::ScriptManager, and sound::SoundManager.
Referenced by initialize().
bool engine::Object::isInitialized | ( | ) | const |
Returns true if the Object has been initialized.
References mIsInitialized.
void engine::Object::removeAllDependencies | ( | ) |
References mDependencyObjects.
Referenced by ~Object().
void engine::Object::removeDependency | ( | Object * | object | ) |
References getID(), mDependencyObjects, and mIsInitialized.
Referenced by physics::Body::setBodyData(), physics::Body::~Body(), and physics::Joint::~Joint().
void engine::Object::setName | ( | const std::string & | name | ) |
References mChangeableName, and mName.
void engine::Object::uninitialize | ( | ) |
Uninitialize object.
References mDependencyObjects, mIsInitialized, and uninitializeImpl().
Referenced by sound::Sound::resourceUnloaded(), render::Model::resourceUnloaded(), physics::Body::setBodyData(), render::Model::setMeshData(), sound::Sound::setSoundData(), engine::EngineManager::stop(), engine::EngineManager::uninitializeImpl(), resource::Resource::unload(), render::Model::~Model(), and sound::Sound::~Sound().
void engine::Object::uninitializeImpl | ( | ) | [protected, virtual] |
Reimplemented in engine::EngineManager, input::InputManager, physics::PhysicsManager, platform::PlatformManager, render::RenderManager, resource::ResourceManager, scene::SceneManager, script::ScriptManager, and sound::SoundManager.
Referenced by uninitialize().
void engine::Object::update | ( | f32 | elapsedTime | ) |
void engine::Object::updateImpl | ( | f32 | elapsedTime | ) | [protected, virtual] |
Reimplemented in engine::EngineManager, input::InputDevice, input::InputManager, physics::PhysicsManager, platform::PlatformManager, render::Camera, render::Model, render::Overlay, render::RenderManager, render::RenderTarget, render::RenderWindow, render::Viewport, resource::Resource, resource::ResourceManager, scene::Node, scene::SceneManager, script::ScriptManager, and sound::SoundManager.
Referenced by update().
bool engine::Object::mChangeableName [protected] |
Referenced by resource::Resource::initProperties(), Object(), and setName().
std::map<u32, Object*> engine::Object::mDependencyObjects [protected] |
Referenced by addDependency(), initialize(), removeAllDependencies(), removeDependency(), and uninitialize().
u32 engine::Object::mID [protected] |
Referenced by getID(), Object(), and scene::Node::setParent().
u32 engine::Object::mIndexCounter = 0 [static, protected] |
Referenced by Object().
bool engine::Object::mIsInitialized [protected] |
Referenced by addDependency(), initialize(), isInitialized(), Object(), removeDependency(), and uninitialize().
std::string engine::Object::mName [protected] |
Referenced by getName(), resource::Resource::initProperties(), engine::Plugin::load(), Object(), setName(), and engine::Plugin::unload().
ObjectType engine::Object::mObjectType [protected] |
Referenced by input::Cursor::Cursor(), engine::EngineManager::EngineManager(), getObjectType(), input::InputDevice::InputDevice(), input::InputManager::InputManager(), physics::Joint::Joint(), engine::Log::Log(), engine::LogManager::LogManager(), scene::Node::Node(), Object(), physics::PhysicsManager::PhysicsManager(), platform::PlatformManager::PlatformManager(), engine::Plugin::Plugin(), engine::PluginManager::PluginManager(), render::RenderManager::RenderManager(), render::RenderTarget::RenderTarget(), resource::Resource::Resource(), resource::ResourceManager::ResourceManager(), scene::SceneManager::SceneManager(), script::ScriptManager::ScriptManager(), sound::SoundManager::SoundManager(), and render::Viewport::Viewport().
u32 engine::Object::msNextGeneratedObjectIndex = 0 [static, protected] |
Incremented count for next object index.
Referenced by Object().
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:07 by
Doxygen
(1.7.4)
|