This is the base class from which all the Entresol and World Managers inherit. More...
#include <managerbase.h>
Public Types | |
enum | ManagerType { MT_AudioManager = 1, MT_AnimationManager, MT_CollisionShapeManager, MT_CompositorManager, MT_GraphicsManager, MT_EventManager, MT_InputManager, MT_LogManager, MT_MaterialManager, MT_MeshManager, MT_NetworkManager, MT_ResourceManager, MT_ScriptingManager, MT_UIManager, MT_ActorManager = 100, MT_AreaEffectManager, MT_CameraManager, MT_DebrisManager, MT_PagingManager, MT_PhysicsManager, MT_SceneManager, MT_SoundScapeManager, MT_TerrainManager, MT_VehicleManager, MT_UserCreated = 512 } |
Public Member Functions | |
ManagerBase () | |
Class constructor. | |
virtual | ~ManagerBase () |
Class destructor. | |
virtual void | Deinitialize ()=0 |
Removes this manager from any necessary configuration so it can be safely disposed of. | |
virtual String | GetImplementationTypeName () const =0 |
This Allows any manager name to be sent to a stream. Primarily used for logging. More... | |
virtual ManagerType | GetInterfaceType () const =0 |
This returns the type of this manager. More... | |
virtual String | GetInterfaceTypeAsString () const |
Gets a string of the interface type of this manager. More... | |
virtual void | Initialize ()=0 |
Configures this manager for use prior to entering the main loop. | |
bool | IsInitialized () const |
Gets whether or not this manager has been initialized. More... | |
Static Public Member Functions | |
static String | GetTypeAsString (const ManagerType &ManagerType) |
Gets the string form of the type of manager. More... | |
static ManagerType | GetTypeFromString (const String &ManagerName) |
Gets the type of manager requested from a string. More... | |
Protected Attributes | |
bool | Initialized |
Simple bool indicating whether or not this manager has been initialized. More... | |
Entresol * | TheEntresol |
The actual pointer to the Entresol core class. More... | |
This is the base class from which all the Entresol and World Managers inherit.
This creates a base set of functions that Managers are all expected to implement.
Definition at line 59 of file managerbase.h.
Enumerator | |
---|---|
MT_UserCreated |
This, and values above it, is what User created managers that do not derive from any other managers are expected to use to prevent confusion with game internals. |
Definition at line 67 of file managerbase.h.
|
pure virtual |
This Allows any manager name to be sent to a stream. Primarily used for logging.
Implemented in Mezzanine::Physics::PhysicsManager, Mezzanine::EventManager, Mezzanine::UI::UIManager, Mezzanine::ResourceManager, Mezzanine::Graphics::SceneManager, Mezzanine::Graphics::GraphicsManager, Mezzanine::Physics::CollisionShapeManager, Mezzanine::AreaEffectManager, Mezzanine::DebrisManager, Mezzanine::Input::InputManager, Mezzanine::Graphics::MeshManager, Mezzanine::ActorManager, Mezzanine::Graphics::CameraManager, Mezzanine::TerrainManager, and Mezzanine::Scripting::iScriptingManager.
|
pure virtual |
This returns the type of this manager.
This is intended to make using and casting from Manager base easier. With this is is possible to cast from ManagerBase to the correct Manager Type.
Implemented in Mezzanine::Audio::AudioManager, Mezzanine::Physics::PhysicsManager, Mezzanine::EventManager, Mezzanine::UI::UIManager, Mezzanine::ResourceManager, Mezzanine::Graphics::SceneManager, Mezzanine::Audio::SoundScapeManager, Mezzanine::Graphics::GraphicsManager, Mezzanine::Physics::CollisionShapeManager, Mezzanine::AreaEffectManager, Mezzanine::DebrisManager, Mezzanine::Input::InputManager, Mezzanine::Graphics::MeshManager, Mezzanine::ActorManager, Mezzanine::Graphics::CameraManager, Mezzanine::TerrainManager, and Mezzanine::Scripting::iScriptingManager.
|
virtual |
Gets a string of the interface type of this manager.
Definition at line 71 of file managerbase.cpp.
|
static |
Gets the string form of the type of manager.
Definition at line 76 of file managerbase.cpp.
|
static |
Gets the type of manager requested from a string.
Definition at line 158 of file managerbase.cpp.
bool Mezzanine::ManagerBase::IsInitialized | ( | ) | const |
Gets whether or not this manager has been initialized.
Definition at line 65 of file managerbase.cpp.
|
protected |
Simple bool indicating whether or not this manager has been initialized.
Definition at line 109 of file managerbase.h.
|
protected |
The actual pointer to the Entresol core class.
Definition at line 106 of file managerbase.h.