Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

orxonox/branches/levelLoader: constifization

Location:
orxonox/branches/levelLoader/src/world_entities
Files:
6 edited

Legend:

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

    r4114 r4253  
    8080   \todo add more parameters to load
    8181*/
    82 Player::Player(TiXmlElement* root) : WorldEntity(root)
     82Player::Player(const TiXmlElement* root) : WorldEntity(root)
    8383{
    8484  this->weapons = new tList<Weapon>();
  • orxonox/branches/levelLoader/src/world_entities/player.h

    r4010 r4253  
    2222 public:
    2323  Player();
    24   Player(TiXmlElement* root);
     24  Player(const TiXmlElement* root);
    2525  virtual ~Player();
    2626
  • orxonox/branches/levelLoader/src/world_entities/skybox.cc

    r4251 r4253  
    4545}
    4646
    47 SkyBox::SkyBox(TiXmlElement* root) : WorldEntity(root)
     47SkyBox::SkyBox(const TiXmlElement* root) : WorldEntity(root)
    4848{
    4949  this->preInit();
    5050
    51   this->load(root);
     51  this->loadParams(root);
    5252
    5353  this->postInit();
    5454}
    5555
    56 void SkyBox::load(TiXmlElement* root)
     56void SkyBox::loadParams(const TiXmlElement* root)
    5757{
    5858  LoadParam<SkyBox>(root, "Materialset", this, &SkyBox::setTexture);
  • orxonox/branches/levelLoader/src/world_entities/skybox.h

    r4251 r4253  
    2222 public:
    2323  SkyBox(const char* fileName = NULL);
    24   SkyBox(TiXmlElement* root);
     24  SkyBox(const TiXmlElement* root);
    2525
    2626  virtual ~SkyBox();
    2727
    28   void load(TiXmlElement* root);
     28  void loadParams(const TiXmlElement* root);
    2929
    3030  void preInit(void);
  • orxonox/branches/levelLoader/src/world_entities/world_entity.cc

    r4251 r4253  
    2828   \brief Loads the WordEntity-specific Part of any derived Class
    2929*/
    30 WorldEntity::WorldEntity(TiXmlElement* root)
     30WorldEntity::WorldEntity(const TiXmlElement* root)
    3131{
    3232  this->setClassName ("WorldEntity");
     
    3434
    3535  if (root)
    36     this->load(root);
     36    this->loadParams(root);
    3737
    3838  this->bDraw = true;
    3939}
    4040
    41 void WorldEntity::load(TiXmlElement* root)
     41void WorldEntity::loadParams(const TiXmlElement* root)
    4242{
    4343  // name setup
  • orxonox/branches/levelLoader/src/world_entities/world_entity.h

    r4251 r4253  
    2323
    2424 public:
    25   WorldEntity(TiXmlElement* root = NULL);
     25  WorldEntity(const TiXmlElement* root = NULL);
    2626  virtual ~WorldEntity ();
    2727
    28   void load(TiXmlElement* root);
     28  void loadParams(const TiXmlElement* root);
    2929  void loadModel(const char* fileName);
    3030
Note: See TracChangeset for help on using the changeset viewer.