Changeset 4332 in orxonox.OLD for orxonox/branches/physics/src/lib
- Timestamp:
- May 27, 2005, 7:14:55 PM (20 years ago)
- 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 30 30 HelperParent::HelperParent () 31 31 { 32 this->setClass Name ("HelperParent");32 this->setClassID(CL_HELPER_PARENT, "HelperParent"); 33 33 } 34 34 -
orxonox/branches/physics/src/lib/coord/p_node.h
r4274 r4332 93 93 const char* getName (); 94 94 95 96 95 void debug (); 97 96 -
orxonox/branches/physics/src/lib/graphics/graphics_engine.cc
r4283 r4332 34 34 this->minFPS = 9999; 35 35 this->maxFPS = 0; 36 this->setClass Name ("GraphicsEngine");36 this->setClassID(CL_GRAPHICS_ENGINE, "GraphicsEngine"); 37 37 38 38 this->fullscreen = false; -
orxonox/branches/physics/src/lib/graphics/light.cc
r3809 r4332 34 34 Light::Light(int lightNumber) 35 35 { 36 this->setClass Name("Light");36 this->setClassID(CL_LIGHT, "Light"); 37 37 char tmpName[7]; 38 38 sprintf(tmpName, "Light%d", lightNumber); … … 205 205 LightManager::LightManager () 206 206 { 207 this->setClass Name ("LightManager");207 this->setClassID(CL_LIGHT_MANAGER, "LightManager"); 208 208 209 209 glEnable (GL_LIGHTING); -
orxonox/branches/physics/src/lib/graphics/particles/particle_emitter.cc
r4328 r4332 30 30 float velocity) 31 31 { 32 this->setClass Name ("ParticleEmitter");32 this->setClassID(CL_PARTICLE_EMITTER, "ParticleEmitter"); 33 33 34 34 this->type = EMITTER_DOT; -
orxonox/branches/physics/src/lib/graphics/particles/particle_engine.cc
r4308 r4332 30 30 ParticleEngine::ParticleEngine () 31 31 { 32 this->setClass Name ("ParticleEngine");32 this->setClassID(CL_PARTICLE_ENGINE, "ParticleEngine"); 33 33 34 34 this->systemList = new tList<ParticleSystem>; -
orxonox/branches/physics/src/lib/graphics/particles/particle_system.cc
r4330 r4332 42 42 ParticleSystem::ParticleSystem (unsigned int maxCount, PARTICLE_TYPE type) 43 43 { 44 this->setClassName ("ParticleSystem");44 this->setClassID(CL_PARTICLE_SYSTEM, "ParticleSystem"); 45 45 this->material = NULL; 46 46 this->name = NULL; -
orxonox/branches/physics/src/lib/graphics/text_engine.cc
r3953 r4332 51 51 Text::Text(Font* font, int type) 52 52 { 53 this->setClass Name("Text");53 this->setClassID(CL_TEXT, "Text"); 54 54 55 55 // initialize this Text … … 802 802 TextEngine::TextEngine () 803 803 { 804 this->setClass Name ("TextEngine");804 this->setClassID(CL_TEXT_ENGINE, "TextEngine"); 805 805 this->enableFonts(); 806 806 -
orxonox/branches/physics/src/lib/lang/base_object.cc
r4283 r4332 30 30 { 31 31 this->className = NULL; 32 this->id = -1; 32 33 this->finalized = false; 33 34 } … … 42 43 } 43 44 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 */ 51 void 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 */ 62 void 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 */ 72 void BaseObject::setClassName(const char* className) 45 73 { 46 74 this->className = className; 47 75 } 48 76 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 */ 49 83 bool BaseObject::isA (char* className) 50 84 { … … 54 88 } 55 89 90 56 91 /* 57 bool BaseObject::isFinalized() 58 { 59 60 } 92 \brief this finalizes an object and makes it ready to be garbage collected 61 93 */ 62 63 94 void BaseObject::finalize() 64 95 { -
orxonox/branches/physics/src/lib/lang/base_object.h
r4283 r4332 9 9 10 10 #include "stdincl.h" 11 11 #include "class_list.h" 12 12 13 13 class BaseObject { … … 17 17 virtual ~BaseObject (); 18 18 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 20 23 inline const char* getClassName(void) const { return this->className;}; 24 inline int getClassID(void) const { return this->id; } 21 25 bool isA (char* className); 22 26 … … 25 29 26 30 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 29 34 }; 30 35
Note: See TracChangeset
for help on using the changeset viewer.