Changeset 9869 in orxonox.OLD for trunk/src/proto/proto_singleton.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/proto/proto_singleton.cc
r9406 r9869 17 17 18 18 #include "proto_singleton.h" 19 20 21 19 ObjectListDefinition(ProtoSingleton); 22 20 23 21 /** … … 26 24 ProtoSingleton::ProtoSingleton () 27 25 { 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 */ 26 this->registerObject(this, ProtoSingleton::_objectList); 27 this->setName("ProtoSingleton"); 43 28 } 44 29
Note: See TracChangeset
for help on using the changeset viewer.