Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 21, 2005, 11:17:18 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/levelLoader: some issues, to be able to describe what is loadable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelLoader/src/world_entities/world_entity.cc

    r4240 r4251  
    2626
    2727/**
    28    \brief standard constructor
    29 */
    30 WorldEntity::WorldEntity ()
     28   \brief Loads the WordEntity-specific Part of any derived Class
     29*/
     30WorldEntity::WorldEntity(TiXmlElement* root)
    3131{
    3232  this->setClassName ("WorldEntity");
     33  this->model = NULL;
     34
     35  if (root)
     36    this->load(root);
     37
    3338  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
     41void WorldEntity::load(TiXmlElement* root)
     42{
     43  // name setup
    4544  LoadParam<WorldEntity>(root, "name", this, &WorldEntity::setName);
     45
    4646  // Model Loading     
    47   this->model = NULL;
    4847  LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel);
    49 
    50   this->bDraw = true;
    5148}
    5249
Note: See TracChangeset for help on using the changeset viewer.