Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6512 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Jan 17, 2006, 10:01:07 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: loadParams is now virtual.
ALL THE CLASSES HAVE TO CALL

SuperClass::loadParams(root);

isntead of:
static_cast<SuperClass*>(this)→loadParams(root);

which was quite stupid anyways

Location:
trunk/src/util
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/hud.cc

    r6498 r6512  
    5555void Hud::loadParams(const TiXmlElement* root)
    5656{
     57  Element2D::loadParams(root);
    5758}
    5859
  • trunk/src/util/hud.h

    r6443 r6512  
    2323
    2424
    25   void loadParams(const TiXmlElement* root);
     25  virtual void loadParams(const TiXmlElement* root);
    2626
    2727  void setBackGround();
  • trunk/src/util/track/track_manager.cc

    r5944 r6512  
    394394 * @param root the TiXmlElement to load the Data from
    395395*/
    396 bool TrackManager::loadParams(const TiXmlElement* root)
     396void TrackManager::loadParams(const TiXmlElement* root)
    397397{
    398398  double x, y, z, d;
  • trunk/src/util/track/track_manager.h

    r5313 r6512  
    139139  inline static TrackManager* getInstance() { if (!singletonRef) singletonRef = new TrackManager();  return singletonRef; };
    140140
    141   bool loadParams(const TiXmlElement* root);
     141  virtual void loadParams(const TiXmlElement* root);
    142142
    143143  // Methods to change the Path (initialisation)
Note: See TracChangeset for help on using the changeset viewer.