Changeset 4744 in orxonox.OLD for orxonox/trunk/src/proto
- Timestamp:
- Jun 30, 2005, 4:53:14 PM (19 years ago)
- Location:
- orxonox/trunk/src/proto
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/proto/proto_class.cc
r4320 r4744 1 /* 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 … … 25 25 \todo this constructor is not jet implemented - do it 26 26 */ 27 ProtoClass::ProtoClass () 27 ProtoClass::ProtoClass () 28 28 { 29 this->setClassID(CL_PROTO_ID, "ProtoClass"); 29 this->setClassID(CL_PROTO_ID, "ProtoClass"); 30 30 31 31 /* If you make a new class, what is most probably the case when you write this file 32 32 don't forget to: 33 33 1. Add the new file new_class.cc to the ./src/Makefile.am 34 2. Add the class identifier to ./src/class_ list.h eg. CL_NEW_CLASS34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS 35 35 36 36 Advanced Topics: 37 37 - if you want to let your object be managed via the ObjectManager make sure to read 38 38 the object_manager.h header comments. You will use this most certanly only if you 39 39 make many objects of your class, like a weapon bullet. 40 40 */ 41 41 } … … 46 46 47 47 */ 48 ProtoClass::~ProtoClass () 48 ProtoClass::~ProtoClass () 49 49 { 50 50 // delete what has to be deleted here -
orxonox/trunk/src/proto/proto_singleton.cc
r4519 r4744 1 /* 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 … … 24 24 \brief standard constructor 25 25 */ 26 ProtoSingleton::ProtoSingleton () 26 ProtoSingleton::ProtoSingleton () 27 27 { 28 28 this->setClassName("ProtoSingleton"); 29 this->setClassID(CL_PROTO_ID, "ProtoSingleton"); 29 this->setClassID(CL_PROTO_ID, "ProtoSingleton"); 30 30 31 31 /* If you make a new class, what is most probably the case when you write this file 32 32 don't forget to: 33 33 1. Add the new file new_class.cc to the ./src/Makefile.am 34 2. Add the class identifier to ./src/class_ list.h eg. CL_NEW_CLASS34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS 35 35 36 36 Advanced Topics: 37 37 - if you want to let your object be managed via the ObjectManager make sure to read 38 38 the object_manager.h header comments. You will use this most certanly only if you 39 39 make many objects of your class, like a weapon bullet. 40 40 */ 41 41 } … … 50 50 51 51 */ 52 ProtoSingleton::~ProtoSingleton () 52 ProtoSingleton::~ProtoSingleton () 53 53 { 54 54 ProtoSingleton::singletonRef = NULL;
Note: See TracChangeset
for help on using the changeset viewer.