Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4320 in orxonox.OLD for orxonox/trunk/src/proto


Ignore:
Timestamp:
May 27, 2005, 1:13:42 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: now string name of a class works parallel to the int id representation and is only used for documentation purposes

Location:
orxonox/trunk/src/proto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/proto/proto_class.cc

    r3955 r4320  
    2727ProtoClass::ProtoClass ()
    2828{
    29    this->setClassName ("ProtoClass");
     29   this->setClassID(CL_PROTO_ID, "ProtoClass");
     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_list.h eg. CL_NEW_CLASS
     35
     36      Advanced Topics:
     37      - if you want to let your object be managed via the ObjectManager make sure to read
     38        the object_manager.h header comments. You will use this most certanly only if you
     39        make many objects of your class, like a weapon bullet.
     40   */
    3041}
    3142
  • orxonox/trunk/src/proto/proto_singleton.cc

    r3655 r4320  
    2626ProtoSingleton::ProtoSingleton ()
    2727{
    28    this->setClassName ("ProtoSingleton");
     28   this->setClassName("ProtoSingleton");
     29   this->setClassID(CL_PROTO_ID, "ProtoSingleton");
    2930
     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_list.h eg. CL_NEW_CLASS
     35
     36      Advanced Topics:
     37      - if you want to let your object be managed via the ObjectManager make sure to read
     38        the object_manager.h header comments. You will use this most certanly only if you
     39        make many objects of your class, like a weapon bullet.
     40   */
    3041}
    3142
Note: See TracChangeset for help on using the changeset viewer.