Changeset 4251 in orxonox.OLD for orxonox/branches/levelLoader/src/world_entities/world_entity.cc
- Timestamp:
- May 21, 2005, 11:17:18 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelLoader/src/world_entities/world_entity.cc
r4240 r4251 26 26 27 27 /** 28 \brief standard constructor29 */ 30 WorldEntity::WorldEntity ()28 \brief Loads the WordEntity-specific Part of any derived Class 29 */ 30 WorldEntity::WorldEntity(TiXmlElement* root) 31 31 { 32 32 this->setClassName ("WorldEntity"); 33 this->model = NULL; 34 35 if (root) 36 this->load(root); 37 33 38 this->bDraw = true; 34 this->model = NULL; 35 // collisioncluster = NULL; 36 } 37 38 /** 39 \brief Loads the WordEntity-specific Part of any derived Class 40 */ 41 WorldEntity::WorldEntity(TiXmlElement* root) 42 { 43 this->setClassName ("WorldEntity"); 44 // Name Setup 39 } 40 41 void WorldEntity::load(TiXmlElement* root) 42 { 43 // name setup 45 44 LoadParam<WorldEntity>(root, "name", this, &WorldEntity::setName); 45 46 46 // Model Loading 47 this->model = NULL;48 47 LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel); 49 50 this->bDraw = true;51 48 } 52 49
Note: See TracChangeset
for help on using the changeset viewer.