Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5652 in orxonox.OLD for trunk/src/lib/particles/particle_system.cc


Ignore:
Timestamp:
Nov 20, 2005, 6:32:39 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: new LoadParam procedure with all NON-cycling load-options, and it works perfectly (on first sight :))

now going to make the same for cycling LoadOptions

File:
1 edited

Legend:

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

    r5511 r5652  
    2525
    2626#include "load_param.h"
    27 #include "compiler.h"
     27#include "factory.h"
    2828#include "material.h"
    2929#include "state.h"
     
    119119  static_cast<PhysicsInterface*>(this)->loadParams(root);
    120120
    121   LoadParam<ParticleSystem>(root, "max-count", this, &ParticleSystem::setMaxCount)
     121  LoadParamNEW(root, "max-count", this, ParticleSystem, setMaxCount)
    122122      .describe("the maximal count of Particles, that can be emitted into this system");
    123123
    124124  //LoadParam<ParticleSystem>(root, "type", this, &ParticleSystem::setType);
    125   LoadParam<ParticleSystem>(root, "life-span", this, &ParticleSystem::setLifeSpan)
     125  LoadParamNEW(root, "life-span", this, ParticleSystem, setLifeSpan)
    126126      .describe("sets the life-span of the Particles.");
    127127
    128   LoadParam<ParticleSystem>(root, "conserve", this, &ParticleSystem::setConserve)
    129       .describe("sets the Conserve facrot of the Particles (1.0: they keep all their energy, 0.0:they keep no energy)");
    130 
    131   LoadParam<ParticleSystem>(root, "type", this, &ParticleSystem::setType)
     128  LoadParamNEW(root, "conserve", this, ParticleSystem, setConserve)
     129      .describe("sets the Conserve factor of the Particles (1.0: they keep all their energy, 0.0:they keep no energy)");
     130
     131  LoadParamNEW(root, "type", this, ParticleSystem, setType)
    132132      .describe("sets the type of the Particles, (dot, spark, sprite or model)");
    133133
Note: See TracChangeset for help on using the changeset viewer.