This class represents a world for objects to interact within. More...
#include <world.h>
Public Types | |
typedef WorldManagerContainer::const_iterator | ConstWorldManagerContainer |
Const Iterator type for WorldManager instances stored by this class. | |
typedef std::vector < WorldManager * > | WorldManagerContainer |
Basic container type for WorldManager storage by this class. | |
typedef WorldManagerContainer::iterator | WorldManagerIterator |
Iterator type for WorldManager instances stored by this class. | |
Public Member Functions | |
World () | |
Class constructor. | |
World (const WorldManagerContainer &Managers) | |
Pre-made manager constructor. More... | |
World (const Physics::ManagerConstructionInfo &PhysicsInfo, const String &SceneType) | |
Descriptive constructor. More... | |
World (const WorldManagerContainer &Managers, const Physics::ManagerConstructionInfo &PhysicsInfo, const String &SceneType) | |
Descriptive pre-made manager constructor. More... | |
World (const XML::Node &SelfNode) | |
XML constructor. More... | |
virtual | ~World () |
class destructor. | |
Boolean | AddManager (WorldManager *ManagerToAdd) |
This adds a manager, in the correct order, to the list that the world calls on. More... | |
void | Deinitialize () |
Deinitializes all managers in this world and unhooks all of it's systems, disabling this world. | |
ActorManager * | GetActorManager () |
This gets the ActorManager from the manager list. More... | |
AreaEffectManager * | GetAreaEffectManager () |
This gets the AreaEffectManager from the manager list. More... | |
CameraManager * | GetCameraManager () |
This gets the CameraManager from the manager list. More... | |
WorldManager * | GetManager (const ManagerBase::ManagerType ManagerToGet) |
This is will find the manager of a given type. More... | |
Physics::PhysicsManager * | GetPhysicsManager () |
This gets the PhysicsManager from the manager list. More... | |
Graphics::SceneManager * | GetSceneManager () |
This gets the SceneManager from the manager list. More... | |
Audio::SoundScapeManager * | GetSoundScapeManager () |
This gets the SoundScapeManager from the manager list. More... | |
TerrainManager * | GetTerrainManager () |
This gets the TerrainManager from the manager list. More... | |
void | Initialize () |
Initializes all managers in this world and performs all the necessary hooks to enable this world. | |
void | RemoveManager (WorldManager *ToBeRemoved) |
This removes a manager by finding the matching pointer. More... | |
void | RemoveManager (const ManagerBase::ManagerType ToBeRemoved) |
This removes a manager of a specific type from the list. More... | |
Protected Attributes | |
WorldManagerContainer | WorldManagers |
A container storing all the managers belonging to this world. More... | |
This class represents a world for objects to interact within.
Objects can be inserted and removed from worlds in order to simulate them. Multiple worlds can exist but objects can only belong to one world at a time.
Mezzanine::World::World | ( | const WorldManagerContainer & | Managers) |
Mezzanine::World::World | ( | const Physics::ManagerConstructionInfo & | PhysicsInfo, |
const String & | SceneType | ||
) |
Mezzanine::World::World | ( | const WorldManagerContainer & | Managers, |
const Physics::ManagerConstructionInfo & | PhysicsInfo, | ||
const String & | SceneType | ||
) |
Descriptive pre-made manager constructor.
Managers | A container of pre-made managers to be used by this world. |
PhysicsInfo | A ManagerConstructionInfo struct with data on how to configure the physics for this world. |
SceneType | A string containing the name of the underlying scene type for this world. |
Mezzanine::World::World | ( | const XML::Node & | SelfNode) |
Boolean Mezzanine::World::AddManager | ( | WorldManager * | ManagerToAdd) |
ActorManager * Mezzanine::World::GetActorManager | ( | ) |
This gets the ActorManager from the manager list.
AreaEffectManager * Mezzanine::World::GetAreaEffectManager | ( | ) |
This gets the AreaEffectManager from the manager list.
CameraManager * Mezzanine::World::GetCameraManager | ( | ) |
WorldManager * Mezzanine::World::GetManager | ( | const ManagerBase::ManagerType | ManagerToGet) |
This is will find the manager of a given type.
ManagerToGet | The ManagerBase::ManagerTypeName of the manager to get. |
Physics::PhysicsManager * Mezzanine::World::GetPhysicsManager | ( | ) |
Graphics::SceneManager * Mezzanine::World::GetSceneManager | ( | ) |
Audio::SoundScapeManager * Mezzanine::World::GetSoundScapeManager | ( | ) |
TerrainManager * Mezzanine::World::GetTerrainManager | ( | ) |
This gets the TerrainManager from the manager list.
void Mezzanine::World::RemoveManager | ( | WorldManager * | ToBeRemoved) |
void Mezzanine::World::RemoveManager | ( | const ManagerBase::ManagerType | ToBeRemoved) |
|
protected |