21 #ifndef COBJECT_FACTORY_H
22 #define COBJECT_FACTORY_H
27 #include "../PF_LIB/PFManager.h"
31 #define ObjFac OpenSkyNet::Core::ObjectFactory::getInstance()
33 namespace OpenSkyNet {
49 std::map<const CD::Volume*, PF::WaypointCollection*> _volWPCMap;
50 std::map<const CD::Volume*, PF::WaypointCollection*> _nonPersistentWPCs;
53 static Utils::uint getColGroupUIntFromStr(
const char* colGroup_);
54 static const char* getColGroupStrFromUInt(
Utils::uint colGroup_);
63 static void shutDown();
66 void destroyAllObjects(
bool doDestroyPersistentData_);
72 virtual Object* createObject(
const char* name_,
bool isPersistent_, CREATION_FLAG flag_, ...);
74 Object* getObject(
const char* name_);
76 inline const std::map<std::string, Object*>&
getObjects()
const {
return _namesToObjs; }
79 inline const std::map<const CD::Volume*, PF::WaypointCollection*>& getVolWPCMap()
const {
return _volWPCMap; }
85 #endif //COBJECT_FACTORY_H
std::map< std::string, Object * > _namesToObjs
Definition: CObjectFactory.h:45
static ObjectFactory *& getInstance()
Definition: CObjectFactory.h:61
std::vector< CD::Shape * > _nonPersistentShapes
Definition: CObjectFactory.h:43
Definition: CObjectFactory.h:36
Definition: CDVolume.h:54
static ObjectFactory * _instance
Definition: CObjectFactory.h:41
static void createInstance()
Definition: CObjectFactory.h:59
unsigned int uint
Definition: UTypes.h:39
#define CORE_DLL
Definition: CCoreDLL.h:57
std::vector< Object * > _nonPersistentObjs
Definition: CObjectFactory.h:46
CREATION_FLAG
Definition: CObjectFactory.h:38
Definition: CObjectFactory.h:38
SHAPE_TYPE
Definition: CDVolume.h:31
CD::Shape * getShape(Utils::uint index_)
Definition: CObjectFactory.h:70
const std::map< std::string, Object * > & getObjects() const
Definition: CObjectFactory.h:76