Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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/proto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/proto/proto_world_entity.cc

    r5509 r6512  
    6363{
    6464  // all the clases this Entity is directly derived from must be called in this way, to load all settings.
    65   static_cast<WorldEntity*>(this)->loadParam(root);
     65  WorldEntity::loadParam(root);
    6666
    6767
  • trunk/src/proto/proto_world_entity.h

    r5509 r6512  
    1717  virtual ~ProtoWorldEntity();
    1818
    19   void loadParams(const TiXmlElement* root);
     19  virtual void loadParams(const TiXmlElement* root);
    2020  void init();
    2121
Note: See TracChangeset for help on using the changeset viewer.