Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6512 in orxonox.OLD for trunk/src/lib/particles


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/lib/particles
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/particles/particle_emitter.cc

    r5750 r6512  
    9393void ParticleEmitter::loadParams(const TiXmlElement* root)
    9494{
    95   static_cast<PNode*>(this)->loadParams(root);
     95  PNode::loadParams(root);
    9696
    9797  LoadParam(root, "type", this, ParticleEmitter, setType)
  • trunk/src/lib/particles/particle_emitter.h

    r5405 r6512  
    3939
    4040  void init();
    41   void loadParams(const TiXmlElement* root);
     41  virtual void loadParams(const TiXmlElement* root);
    4242
    4343  /* controlling the emitter: interface */
  • trunk/src/lib/particles/particle_engine.h

    r5944 r6512  
    3737  inline static ParticleEngine* getInstance() { if (!singletonRef) singletonRef = new ParticleEngine();  return singletonRef; };
    3838
    39   void loadParams(const TiXmlElement* root);
     39  virtual void loadParams(const TiXmlElement* root);
    4040
    4141  void tick(float dt);
  • trunk/src/lib/particles/particle_system.cc

    r6308 r6512  
    116116void ParticleSystem::loadParams(const TiXmlElement* root)
    117117{
    118   static_cast<WorldEntity*>(this)->loadParams(root);
    119   static_cast<PhysicsInterface*>(this)->loadParams(root);
     118  WorldEntity::loadParams(root);
     119  PhysicsInterface::loadParams(root);
    120120
    121121  LoadParam(root, "max-count", this, ParticleSystem, setMaxCount)
  • trunk/src/lib/particles/particle_system.h

    r5446 r6512  
    7474
    7575  void init();
    76   void loadParams(const TiXmlElement* root);
     76  virtual void loadParams(const TiXmlElement* root);
    7777
    7878  void setType(const char* particleType);
Note: See TracChangeset for help on using the changeset viewer.