Changeset 5629 in orxonox.OLD for branches/world_entities/src/util/object_manager.cc
- Timestamp:
- Nov 18, 2005, 12:32:35 PM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/world_entities/src/util/object_manager.cc
r5628 r5629 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY 17 17 18 #include " proto_singleton.h"18 #include "object_manager.h" 19 19 20 20 using namespace std; … … 24 24 * standard constructor 25 25 */ 26 ProtoSingleton::ProtoSingleton()26 ObjectManager::ObjectManager () 27 27 { 28 this->setClassID(CL_PROTO_ID, "ProtoSingleton"); 29 this->setName("ProtoSingleton"); 30 31 /* If you make a new class, what is most probably the case when you write this file 32 don't forget to: 33 1. Add the new file new_class.cc to the ./src/Makefile.am 34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS 35 !!!!!!!!!! IMPORTANT FOR SINGLETON !!!!!!!!!!!!!!!! 36 3. SingleTon MUST be CL_NEW_CLASS = 0x00000fxx 37 38 Advanced Topics: 39 - if you want to let your object be managed via the ObjectManager make sure to read 40 the object_manager.h header comments. You will use this most certanly only if you 41 make many objects of your class, like a weapon bullet. 42 */ 28 this->setClassID(CL_OBJECT_MANAGER, "ObjectManager"); 29 this->setName("ObjectManager"); 43 30 } 44 31 … … 46 33 * the singleton reference to this class 47 34 */ 48 ProtoSingleton* ProtoSingleton::singletonRef = NULL;35 ObjectManager* ObjectManager::singletonRef = NULL; 49 36 50 37 /** 51 38 @brief standard deconstructor 52 39 */ 53 ProtoSingleton::~ProtoSingleton()40 ObjectManager::~ObjectManager () 54 41 { 55 ProtoSingleton::singletonRef = NULL;42 ObjectManager::singletonRef = NULL; 56 43 }
Note: See TracChangeset
for help on using the changeset viewer.