Changeset 4320 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- May 27, 2005, 1:13:42 AM (20 years ago)
- Location:
- orxonox/trunk/src/lib
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/helper_parent.cc
r4318 r4320 30 30 HelperParent::HelperParent () 31 31 { 32 this->setClassID(CL_HELPER_PARENT );32 this->setClassID(CL_HELPER_PARENT, "HelperParent"); 33 33 } 34 34 -
orxonox/trunk/src/lib/graphics/graphics_engine.cc
r4318 r4320 34 34 this->minFPS = 9999; 35 35 this->maxFPS = 0; 36 this->setClassID(CL_GRAPHICS_ENGINE );36 this->setClassID(CL_GRAPHICS_ENGINE, "GraphicsEngine"); 37 37 38 38 this->fullscreen = false; -
orxonox/trunk/src/lib/graphics/light.cc
r4318 r4320 34 34 Light::Light(int lightNumber) 35 35 { 36 this->setClassID(CL_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->setClassID(CL_LIGHT_MANAGER );207 this->setClassID(CL_LIGHT_MANAGER, "LightManager"); 208 208 209 209 glEnable (GL_LIGHTING); -
orxonox/trunk/src/lib/graphics/particles/particle_emitter.cc
r4318 r4320 30 30 float velocity) 31 31 { 32 this->setClassID(CL_PARTICLE_EMITTER );32 this->setClassID(CL_PARTICLE_EMITTER, "ParticleEmitter"); 33 33 this->direction = direction; 34 34 this->setSpread(angle); -
orxonox/trunk/src/lib/graphics/particles/particle_engine.cc
r4318 r4320 30 30 ParticleEngine::ParticleEngine () 31 31 { 32 this->setClassID(CL_PARTICLE_ENGINE );32 this->setClassID(CL_PARTICLE_ENGINE, "ParticleEngine"); 33 33 34 34 this->systemList = new tList<ParticleSystem>; -
orxonox/trunk/src/lib/graphics/particles/particle_system.cc
r4318 r4320 34 34 ParticleSystem::ParticleSystem (unsigned int maxCount, PARTICLE_TYPE type) 35 35 { 36 this->setClassID(CL_PARTICLE_SYSTEM );36 this->setClassID(CL_PARTICLE_SYSTEM, "ParticleSystem"); 37 37 this->material = NULL; 38 38 this->name = NULL; -
orxonox/trunk/src/lib/graphics/text_engine.cc
r4318 r4320 51 51 Text::Text(Font* font, int type) 52 52 { 53 this->setClassID(CL_TEXT );53 this->setClassID(CL_TEXT, "Text"); 54 54 55 55 // initialize this Text … … 802 802 TextEngine::TextEngine () 803 803 { 804 this->setClassID(CL_TEXT_ENGINE );804 this->setClassID(CL_TEXT_ENGINE, "TextEngine"); 805 805 this->enableFonts(); 806 806 -
orxonox/trunk/src/lib/lang/base_object.cc
r4318 r4320 42 42 } 43 43 44 void BaseObject::setClassID(int id, const char* className) 45 { 46 this->id = id; 47 this->className = className; 48 } 49 44 50 45 51 void BaseObject::setClassID (int id) … … 48 54 } 49 55 56 void BaseObject::setClassName(const char* className) 57 { 58 this->className = className; 59 } 50 60 51 61 -
orxonox/trunk/src/lib/lang/base_object.h
r4318 r4320 17 17 virtual ~BaseObject (); 18 18 19 //void setClassName (const char* className);20 19 void setClassID(int id); 20 void setClassName(const char* className); 21 void setClassID(int id, const char* className); 21 22 22 inline const char* getClassName(void) const { return "";};23 inline const char* getClassName(void) const { return this->className;}; 23 24 inline int getClassID(void) const { return this->id; } 24 25 bool isA (char* className);
Note: See TracChangeset
for help on using the changeset viewer.