Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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/lib
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/helper_parent.cc

    r4318 r4320  
    3030HelperParent::HelperParent ()
    3131{
    32    this->setClassID(CL_HELPER_PARENT);
     32   this->setClassID(CL_HELPER_PARENT, "HelperParent");
    3333}
    3434
  • orxonox/trunk/src/lib/graphics/graphics_engine.cc

    r4318 r4320  
    3434  this->minFPS = 9999;
    3535  this->maxFPS = 0;
    36   this->setClassID(CL_GRAPHICS_ENGINE);
     36  this->setClassID(CL_GRAPHICS_ENGINE, "GraphicsEngine");
    3737
    3838  this->fullscreen = false;
  • orxonox/trunk/src/lib/graphics/light.cc

    r4318 r4320  
    3434Light::Light(int lightNumber)
    3535{
    36   this->setClassID(CL_LIGHT);
     36  this->setClassID(CL_LIGHT, "Light");
    3737  char tmpName[7];
    3838  sprintf(tmpName, "Light%d", lightNumber);
     
    205205LightManager::LightManager ()
    206206{
    207   this->setClassID(CL_LIGHT_MANAGER);
     207  this->setClassID(CL_LIGHT_MANAGER, "LightManager");
    208208
    209209  glEnable (GL_LIGHTING);
  • orxonox/trunk/src/lib/graphics/particles/particle_emitter.cc

    r4318 r4320  
    3030                  float velocity)
    3131{
    32    this->setClassID(CL_PARTICLE_EMITTER);
     32   this->setClassID(CL_PARTICLE_EMITTER, "ParticleEmitter");
    3333   this->direction = direction;
    3434   this->setSpread(angle);
  • orxonox/trunk/src/lib/graphics/particles/particle_engine.cc

    r4318 r4320  
    3030ParticleEngine::ParticleEngine ()
    3131{
    32    this->setClassID(CL_PARTICLE_ENGINE);
     32   this->setClassID(CL_PARTICLE_ENGINE, "ParticleEngine");
    3333
    3434   this->systemList = new tList<ParticleSystem>;
  • orxonox/trunk/src/lib/graphics/particles/particle_system.cc

    r4318 r4320  
    3434ParticleSystem::ParticleSystem (unsigned int maxCount, PARTICLE_TYPE type)
    3535{
    36    this->setClassID(CL_PARTICLE_SYSTEM);
     36   this->setClassID(CL_PARTICLE_SYSTEM, "ParticleSystem");
    3737   this->material = NULL;
    3838   this->name = NULL;
  • orxonox/trunk/src/lib/graphics/text_engine.cc

    r4318 r4320  
    5151Text::Text(Font* font, int type)
    5252{
    53   this->setClassID(CL_TEXT);
     53  this->setClassID(CL_TEXT, "Text");
    5454
    5555  // initialize this Text
     
    802802TextEngine::TextEngine ()
    803803{
    804    this->setClassID(CL_TEXT_ENGINE);
     804   this->setClassID(CL_TEXT_ENGINE, "TextEngine");
    805805   this->enableFonts();
    806806
  • orxonox/trunk/src/lib/lang/base_object.cc

    r4318 r4320  
    4242}
    4343
     44void BaseObject::setClassID(int id, const char* className)
     45{
     46  this->id = id;
     47  this->className = className;
     48}
     49
    4450
    4551void BaseObject::setClassID (int id)
     
    4854}
    4955
     56void BaseObject::setClassName(const char* className)
     57{
     58  this->className = className;
     59}
    5060
    5161
  • orxonox/trunk/src/lib/lang/base_object.h

    r4318 r4320  
    1717  virtual ~BaseObject ();
    1818
    19   //void setClassName (const char* className);
    2019  void setClassID(int id);
     20  void setClassName(const char* className);
     21  void setClassID(int id, const char* className);
    2122
    22   inline const char* getClassName(void) const { return "";};
     23  inline const char* getClassName(void) const { return this->className;};
    2324  inline int getClassID(void) const { return this->id; }
    2425  bool isA (char* className);
Note: See TracChangeset for help on using the changeset viewer.