Changeset 4257 in orxonox.OLD for orxonox/branches
- Timestamp:
- May 22, 2005, 2:39:59 AM (20 years ago)
- Location:
- orxonox/branches/levelLoader/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelLoader/src/lib/lang/base_object.cc
r3651 r4257 39 39 BaseObject::~BaseObject () 40 40 { 41 delete []this->className;41 // delete []this->className; 42 42 } 43 43 44 void BaseObject::setClassName (c har* className)44 void BaseObject::setClassName (const char* className) 45 45 { 46 this->className = new char[strlen(className)+1]; 47 strcpy(this->className, className); 48 } 49 50 char* BaseObject::getClassName(void) const 51 { 52 return className; 46 this->className = className; 53 47 } 54 48 -
orxonox/branches/levelLoader/src/lib/lang/base_object.h
r3651 r4257 17 17 virtual ~BaseObject (); 18 18 19 void setClassName (c har* className);20 char* getClassName(void) const;19 void setClassName (const char* className); 20 inline const char* getClassName(void) const { return this->className;}; 21 21 bool isA (char* className); 22 22 … … 25 25 26 26 private: 27 c har* className;27 const char* className; 28 28 bool finalized; 29 29 }; -
orxonox/branches/levelLoader/src/world_entities/skybox.cc
r4255 r4257 56 56 void SkyBox::loadParams(const TiXmlElement* root) 57 57 { 58 LoadParam<SkyBox>(root, "Materialset", this, &SkyBox::setTexture).describe("Sets the material on the skysphere. The string must be the path relative to the data-dir, and without a trailing .jpg");58 LoadParam<SkyBox>(root, "Materialset", this, &SkyBox::setTexture).describe("Sets the material on the SkyBox. The string must be the path relative to the data-dir, and without a trailing .jpg"); 59 59 } 60 60 -
orxonox/branches/levelLoader/src/world_entities/world_entity.cc
r4253 r4257 42 42 { 43 43 // name setup 44 LoadParam<WorldEntity>(root, "name", this, &WorldEntity::setName) ;44 LoadParam<WorldEntity>(root, "name", this, &WorldEntity::setName).describe("the name of the Object at hand"); 45 45 46 46 // Model Loading 47 LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel) ;47 LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel).describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") ; 48 48 } 49 49
Note: See TracChangeset
for help on using the changeset viewer.