40 #ifndef _managerbase_cpp
41 #define _managerbase_cpp
44 #include "managerbase.h"
45 #include "stringtool.h"
80 case ManagerBase::MT_ActorManager:
81 return "ActorManager";
83 case ManagerBase::MT_AnimationManager:
84 return "AnimationManager";
86 case ManagerBase::MT_AreaEffectManager:
87 return "AreaEffectManager";
89 case ManagerBase::MT_AudioManager:
90 return "AudioManager";
92 case ManagerBase::MT_CollisionShapeManager:
93 return "CollisionShapeManager";
95 case ManagerBase::MT_CompositorManager:
96 return "CompositorManager";
98 case ManagerBase::MT_DebrisManager:
99 return "DebrisManager";
101 case ManagerBase::MT_EventManager:
102 return "EventManager";
104 case ManagerBase::MT_GraphicsManager:
105 return "GraphicsManager";
107 case ManagerBase::MT_InputManager:
108 return "InputManager";
110 case ManagerBase::MT_LogManager:
113 case ManagerBase::MT_MaterialManager:
114 return "MaterialManager";
116 case ManagerBase::MT_MeshManager:
117 return "MeshManager";
119 case ManagerBase::MT_NetworkManager:
120 return "NetworkManager";
122 case ManagerBase::MT_PagingManager:
123 return "PagingManager";
125 case ManagerBase::MT_PhysicsManager:
126 return "PhysicsManager";
128 case ManagerBase::MT_ResourceManager:
129 return "ResourceManager";
131 case ManagerBase::MT_SceneManager:
132 return "SceneManager";
134 case ManagerBase::MT_ScriptingManager:
135 return "ScriptingManager";
137 case ManagerBase::MT_SoundScapeManager:
138 return "SoundScapeManager";
140 case ManagerBase::MT_TerrainManager:
141 return "TerrainManager";
143 case ManagerBase::MT_TextureManager:
144 return "TextureManager";
146 case ManagerBase::MT_UIManager:
149 case ManagerBase::MT_VehicleManager:
150 return "VehicleManager";
153 return "UserCreated";
163 String Lower = ManagerName;
165 switch ( Lower.at(0) )
169 if(
'c' == Lower.at(1) )
return ManagerBase::MT_ActorManager;
170 else if(
'n' == Lower.at(1) )
return ManagerBase::MT_AnimationManager;
171 else if(
'r' == Lower.at(1) )
return ManagerBase::MT_AreaEffectManager;
172 else if(
'u' == Lower.at(1) )
return ManagerBase::MT_AudioManager;
177 if(
'o' == Lower.at(1) ) {
178 if(
'l' == Lower.at(2) )
return ManagerBase::MT_CollisionShapeManager;
179 else if(
'm' == Lower.at(2) )
return ManagerBase::MT_CompositorManager;
185 return ManagerBase::MT_DebrisManager;
190 return ManagerBase::MT_EventManager;
195 return ManagerBase::MT_GraphicsManager;
200 return ManagerBase::MT_InputManager;
205 return ManagerBase::MT_LogManager;
210 if(
'a' == Lower.at(1) )
return ManagerBase::MT_MaterialManager;
211 else if(
'e' == Lower.at(1) )
return ManagerBase::MT_MeshManager;
216 return ManagerBase::MT_NetworkManager;
221 if(
'a' == Lower.at(1) )
return ManagerBase::MT_PagingManager;
222 else if(
'h' == Lower.at(1) )
return ManagerBase::MT_PhysicsManager;
227 return ManagerBase::MT_ResourceManager;
232 if(
'o' == Lower.at(1) ) {
233 return ManagerBase::MT_SoundScapeManager;
236 if(
'e' == Lower.at(2) )
return ManagerBase::MT_SceneManager;
237 else if(
'r' == Lower.at(2) )
return ManagerBase::MT_ScriptingManager;
243 if(
'r' == Lower.at(2) )
return ManagerBase::MT_TerrainManager;
244 else if(
'x' == Lower.at(2) )
return ManagerBase::MT_TextureManager;
249 if(
'i' == Lower.at(1) )
return ManagerBase::MT_UIManager;
255 return ManagerBase::MT_VehicleManager;
virtual ManagerType GetInterfaceType() const =0
This returns the type of this manager.
bool Boole
Generally acts a single bit, true or false.
ManagerType
A listing of Manager Types.
ManagerBase()
Class constructor.
This, and values above it, is what User created managers that do not derive from any other managers a...
virtual ~ManagerBase()
Class destructor.
#define MEZZ_EXCEPTION(num, desc)
An easy way to throw exceptions with rich information.
static String GetTypeAsString(const ManagerType &ManagerType)
Gets the string form of the type of manager.
static Entresol * GetSingletonPtr()
Fetches a pointer to the singleton.
Entresol * TheEntresol
The actual pointer to the Entresol core class.
Thrown when parameters are checked at runtime and found invalid.
static ManagerType GetTypeFromString(const String &ManagerName)
Gets the type of manager requested from a string.
Boole IsInitialized() const
Gets whether or not this manager has been initialized.
The bulk of the engine components go in this namspace.
std::string String
A datatype used to a series of characters.
virtual String GetInterfaceTypeAsString() const
Gets a string of the interface type of this manager.
Boole Initialized
Simple Boole indicating whether or not this manager has been initialized.