Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4436 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
Jun 1, 2005, 12:50:07 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: baseObject now implements loading of objectNames

Location:
orxonox/trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/skybox.cc

    r4357 r4436  
    4545}
    4646
    47 SkyBox::SkyBox(const TiXmlElement* root) : WorldEntity(root)
     47SkyBox::SkyBox(const TiXmlElement* root)
    4848{
    4949  this->preInit();
     
    5656void SkyBox::loadParams(const TiXmlElement* root)
    5757{
     58  static_cast<WorldEntity*>(this)->loadParams(root);
     59
    5860  LoadParam<SkyBox>(root, "Materialset", this, &SkyBox::setTexture)
    5961    .describe("Sets the material on the SkyBox. The string must be the path relative to the data-dir, and without a trailing .jpg");
  • orxonox/trunk/src/world_entities/world_entity.cc

    r4435 r4436  
    3939}
    4040
    41 void WorldEntity::loadParams(const TiXmlElement* root)
    42 {
    43   // name setup
    44   //  LoadParam<WorldEntity>(root, "name", this, &BaseObject::setName)
    45   //    .describe("the name of the Object at hand");
    46 
    47   // Model Loading     
    48   LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel)
    49     .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") ;
    50 }
    51 
    5241/**
    5342   \brief standard destructor
     
    5847  if (this->model)
    5948    ResourceManager::getInstance()->unload(this->model);
     49}
     50
     51void WorldEntity::loadParams(const TiXmlElement* root)
     52{
     53  static_cast<PNode*>(this)->loadParams(root);
     54  // Model Loading
     55  LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel)
     56    .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") ;
    6057}
    6158
Note: See TracChangeset for help on using the changeset viewer.