Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4332 in orxonox.OLD for orxonox/branches/physics/src/lib


Ignore:
Timestamp:
May 27, 2005, 7:14:55 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/physics: merged the trunk back to the physics-branche
merged with command:
svn merge -r 4301:HEAD trunk/ branches/physics/
little conflict in particle-system resolved easily

Location:
orxonox/branches/physics/src/lib
Files:
2 deleted
10 edited
2 copied

Legend:

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

    r3544 r4332  
    3030HelperParent::HelperParent ()
    3131{
    32    this->setClassName ("HelperParent");
     32   this->setClassID(CL_HELPER_PARENT, "HelperParent");
    3333}
    3434
  • orxonox/branches/physics/src/lib/coord/p_node.h

    r4274 r4332  
    9393  const char* getName ();
    9494
    95 
    9695  void debug ();
    9796
  • orxonox/branches/physics/src/lib/graphics/graphics_engine.cc

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

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

    r4328 r4332  
    3030                  float velocity)
    3131{
    32    this->setClassName ("ParticleEmitter");
     32   this->setClassID(CL_PARTICLE_EMITTER, "ParticleEmitter");
    3333
    3434   this->type = EMITTER_DOT;
  • orxonox/branches/physics/src/lib/graphics/particles/particle_engine.cc

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

    r4330 r4332  
    4242ParticleSystem::ParticleSystem (unsigned int maxCount, PARTICLE_TYPE type)
    4343{
    44   this->setClassName ("ParticleSystem");
     44   this->setClassID(CL_PARTICLE_SYSTEM, "ParticleSystem");
    4545  this->material = NULL;
    4646  this->name = NULL;
  • orxonox/branches/physics/src/lib/graphics/text_engine.cc

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

    r4283 r4332  
    3030{
    3131  this->className = NULL;
     32  this->id = -1;
    3233  this->finalized = false;
    3334}
     
    4243}
    4344
    44 void BaseObject::setClassName (const char* className)
     45
     46/**
     47   \brief sets the class identifiers
     48   \param a number for the class from class_list.h enumeration
     49   \param the class name
     50*/
     51void BaseObject::setClassID(int id, const char* className)
     52{
     53  this->id = id;
     54  this->className = className;
     55}
     56
     57
     58/**
     59   \brief sets the class identifier
     60   \param a number for the class from class_list.h enumeration
     61*/
     62void BaseObject::setClassID (int id)
     63{
     64  this->id = id;
     65}
     66
     67
     68/**
     69   \brief sets the class identifiers
     70   \param the class name
     71*/
     72void BaseObject::setClassName(const char* className)
    4573{
    4674  this->className = className;
    4775}
    4876
     77
     78/**
     79   \brief sets the class identifiers
     80   \param a number for the class from class_list.h enumeration
     81   \param the class name
     82*/
    4983bool BaseObject::isA (char* className)
    5084{
     
    5488}
    5589
     90
    5691/*
    57 bool BaseObject::isFinalized()
    58 {
    59  
    60 }
     92  \brief this finalizes an object and makes it ready to be garbage collected
    6193*/
    62 
    6394void BaseObject::finalize()
    6495{
  • orxonox/branches/physics/src/lib/lang/base_object.h

    r4283 r4332  
    99
    1010#include "stdincl.h"
    11 
     11#include "class_list.h"
    1212
    1313class BaseObject {
     
    1717  virtual ~BaseObject ();
    1818
    19   void setClassName (const char* className);
     19  void setClassID(int id);
     20  void setClassName(const char* className);
     21  void setClassID(int id, const char* className);
     22
    2023  inline const char* getClassName(void) const { return this->className;};
     24  inline int getClassID(void) const { return this->id; }
    2125  bool isA (char* className);
    2226
     
    2529
    2630 private:
    27   const char* className;
    28   bool finalized;
     31  const char*    className;                       //!< the name of the class
     32  int            id;                              //!< this is the id from the class_list.h enumeration
     33  bool           finalized;                       //!< is true if the object is ready to be garbage collected
    2934};
    3035
Note: See TracChangeset for help on using the changeset viewer.