277 #include "stringtool.h"
278 #include "crossplatform.h"
279 #include "eventbase.h"
280 #include "exception.h"
284 #include "managerbase.h"
285 #include "singleton.h"
293 class AreaEffectManager;
296 class ResourceManager;
297 class NetworkManager;
298 class ManagerFactory;
306 class GraphicsManager;
317 class PhysicsManager;
318 class CollisionShapeManager;
319 class ManagerConstructionInfo;
337 class ResourceGroupManager;
342 class ParticleFXPlugin;
367 typedef std::map<String,ManagerFactory*> ManagerFactoryMap;
368 typedef ManagerFactoryMap::iterator ManagerFactoryIterator;
369 typedef ManagerFactoryMap::const_iterator ConstManagerFactoryIterator;
385 const String& EngineDataPath,
386 const String& LogFileName,
387 const std::vector <ManagerBase*>& ManagerToBeAdded );
394 void ConstructFromXML(
const String& EngineDataPath,
396 const String& InitializerFile );
401 bool VerifyManagerInitializations();
405 ManagerFactoryMap ManagerFactories;
408 std::list< ManagerBase* > ManagerList;
412 Ogre::ParticleFXPlugin* SubSystemParticleFXPlugin;
415 Int32 ManualLoopBreak;
428 void SetupLogging(
const String& LogFileName);
431 void DestroyLogging();
460 Entresol(std::vector<ManagerFactory*>& CustomFactories,
const String& EngineDataPath,
const ArchiveType ArchType,
const String& InitializerFile =
"Mezzanine.mxi");
469 const String& EngineDataPath,
470 const String& LogFileName =
"Mezzanine.log" );
483 const String& EngineDataPath,
484 const String& LogFileName,
485 const std::vector <ManagerBase*>& ManagerToBeAdded);
500 void PauseWorld(
bool Pause);
508 template <
class T>
void Log(
const T& Message)
513 void LogString(
const String& message);
534 void SetTargetFrameRate(
const Whole NewFrameRate);
541 void SetTargetFrameTimeMilliseconds(
const Whole NewTargetTime);
548 void SetTargetFrameTimeMicroseconds(
const Whole NewTargetTime);
553 Whole GetTargetFrameTimeMilliseconds()
const;
558 Whole GetTargetFrameTimeMicroseconds()
const;
563 Whole GetLastFrameTimeMilliseconds()
const;
567 Whole GetLastFrameTimeMicroseconds()
const;
574 void EngineInit(
const bool& CallMainLoop =
false);
588 void PreMainLoopInit();
598 void BreakMainLoop(Boolean Break =
true);
602 Whole GetFrameCount()
const;
615 void RemoveManagerFactory(
const String& ImplName);
621 void DestroyManagerFactory(
const String& ImplName);
624 void DestroyAllManagerFactories();
626 void AddAllEngineDefaultManagerFactories();
648 void DestroyAllManagers();
710 NetworkManager* GetNetworkManager(
const UInt16 WhichOne = 0);