Changeset 4253 in orxonox.OLD for orxonox/branches/levelLoader/src/world_entities
- Timestamp:
- May 21, 2005, 11:58:49 PM (19 years ago)
- Location:
- orxonox/branches/levelLoader/src/world_entities
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelLoader/src/world_entities/player.cc
r4114 r4253 80 80 \todo add more parameters to load 81 81 */ 82 Player::Player( TiXmlElement* root) : WorldEntity(root)82 Player::Player(const TiXmlElement* root) : WorldEntity(root) 83 83 { 84 84 this->weapons = new tList<Weapon>(); -
orxonox/branches/levelLoader/src/world_entities/player.h
r4010 r4253 22 22 public: 23 23 Player(); 24 Player( TiXmlElement* root);24 Player(const TiXmlElement* root); 25 25 virtual ~Player(); 26 26 -
orxonox/branches/levelLoader/src/world_entities/skybox.cc
r4251 r4253 45 45 } 46 46 47 SkyBox::SkyBox( TiXmlElement* root) : WorldEntity(root)47 SkyBox::SkyBox(const TiXmlElement* root) : WorldEntity(root) 48 48 { 49 49 this->preInit(); 50 50 51 this->load (root);51 this->loadParams(root); 52 52 53 53 this->postInit(); 54 54 } 55 55 56 void SkyBox::load (TiXmlElement* root)56 void SkyBox::loadParams(const TiXmlElement* root) 57 57 { 58 58 LoadParam<SkyBox>(root, "Materialset", this, &SkyBox::setTexture); -
orxonox/branches/levelLoader/src/world_entities/skybox.h
r4251 r4253 22 22 public: 23 23 SkyBox(const char* fileName = NULL); 24 SkyBox( TiXmlElement* root);24 SkyBox(const TiXmlElement* root); 25 25 26 26 virtual ~SkyBox(); 27 27 28 void load (TiXmlElement* root);28 void loadParams(const TiXmlElement* root); 29 29 30 30 void preInit(void); -
orxonox/branches/levelLoader/src/world_entities/world_entity.cc
r4251 r4253 28 28 \brief Loads the WordEntity-specific Part of any derived Class 29 29 */ 30 WorldEntity::WorldEntity( TiXmlElement* root)30 WorldEntity::WorldEntity(const TiXmlElement* root) 31 31 { 32 32 this->setClassName ("WorldEntity"); … … 34 34 35 35 if (root) 36 this->load (root);36 this->loadParams(root); 37 37 38 38 this->bDraw = true; 39 39 } 40 40 41 void WorldEntity::load (TiXmlElement* root)41 void WorldEntity::loadParams(const TiXmlElement* root) 42 42 { 43 43 // name setup -
orxonox/branches/levelLoader/src/world_entities/world_entity.h
r4251 r4253 23 23 24 24 public: 25 WorldEntity( TiXmlElement* root = NULL);25 WorldEntity(const TiXmlElement* root = NULL); 26 26 virtual ~WorldEntity (); 27 27 28 void load (TiXmlElement* root);28 void loadParams(const TiXmlElement* root); 29 29 void loadModel(const char* fileName); 30 30
Note: See TracChangeset
for help on using the changeset viewer.