Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4318 in orxonox.OLD for orxonox/trunk/src/lib/lang/base_object.h


Ignore:
Timestamp:
May 27, 2005, 12:53:34 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: now changed the orxonox baseobject to object id representation. this is much faster, but needs some care, when defining new classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/lang/base_object.h

    r4261 r4318  
    99
    1010#include "stdincl.h"
    11 
     11#include "class_list.h"
    1212
    1313class BaseObject {
     
    1717  virtual ~BaseObject ();
    1818
    19   void setClassName (const char* className);
    20   inline const char* getClassName(void) const { return this->className;};
     19  //void setClassName (const char* className);
     20  void setClassID(int id);
     21
     22  inline const char* getClassName(void) const { return "";};
     23  inline int getClassID(void) const { return this->id; }
    2124  bool isA (char* className);
    2225
     
    2629 private:
    2730  const char* className;
     31  int id;
    2832  bool finalized;
    2933};
Note: See TracChangeset for help on using the changeset viewer.