Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Nov 21, 2005, 3:50:41 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: renamed class LoadParam to CLoadParam and Macro LoadParamNew to LoadParam

Location:
trunk/src/lib/particles
Files:
2 edited

Legend:

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

    r5653 r5671  
    9595  static_cast<PNode*>(this)->loadParams(root);
    9696
    97   LoadParamNEW(root, "type", this, ParticleEmitter, setType)
     97  LoadParam(root, "type", this, ParticleEmitter, setType)
    9898    .describe("What type of emitter is this [dot, plane, cube, sphere].");
    9999
    100   LoadParamNEW(root, "size", this, ParticleEmitter, setSize)
     100  LoadParam(root, "size", this, ParticleEmitter, setSize)
    101101    .describe("How big the emitter is (no effect on dot-emitters)");
    102102
    103   LoadParamNEW(root, "rate", this, ParticleEmitter, setEmissionRate)
     103  LoadParam(root, "rate", this, ParticleEmitter, setEmissionRate)
    104104    .describe("How many particles should be emittet from this emitter");
    105105
    106   LoadParamNEW(root, "inherit-speed", this, ParticleEmitter, setInheritSpeed)
     106  LoadParam(root, "inherit-speed", this, ParticleEmitter, setInheritSpeed)
    107107    .describe("the extent, the speed of the emitter has on the particles");
    108108
    109   LoadParamNEW(root, "emission-velocity", this, ParticleEmitter, setEmissionVelocity)
     109  LoadParam(root, "emission-velocity", this, ParticleEmitter, setEmissionVelocity)
    110110    .describe("How fast the particles are emittet (their initial speed)");
    111111
    112   LoadParamNEW(root, "emission-momentum", this, ParticleEmitter, setEmissionMomentum)
     112  LoadParam(root, "emission-momentum", this, ParticleEmitter, setEmissionMomentum)
    113113      .describe("How fast the particles rotation is at emissiontime (their initial momentum)");
    114114
    115   LoadParamNEW(root, "spread", this, ParticleEmitter, setSpread)
     115  LoadParam(root, "spread", this, ParticleEmitter, setSpread)
    116116    .describe("The angle the particles are emitted from (angle, deviation)");
    117117
    118118
    119   LoadParamNEW(root, "emission-direction", this, ParticleEmitter, setDirection);
     119  LoadParam(root, "emission-direction", this, ParticleEmitter, setDirection);
    120120}
    121121
  • trunk/src/lib/particles/particle_system.cc

    r5654 r5671  
    119119  static_cast<PhysicsInterface*>(this)->loadParams(root);
    120120
    121   LoadParamNEW(root, "max-count", this, ParticleSystem, setMaxCount)
     121  LoadParam(root, "max-count", this, ParticleSystem, setMaxCount)
    122122      .describe("the maximal count of Particles, that can be emitted into this system");
    123123
    124   LoadParamNEW(root, "life-span", this, ParticleSystem, setLifeSpan)
     124  LoadParam(root, "life-span", this, ParticleSystem, setLifeSpan)
    125125      .describe("sets the life-span of the Particles.");
    126126
    127   LoadParamNEW(root, "conserve", this, ParticleSystem, setConserve)
     127  LoadParam(root, "conserve", this, ParticleSystem, setConserve)
    128128      .describe("sets the Conserve factor of the Particles (1.0: they keep all their energy, 0.0:they keep no energy)");
    129129
    130   LoadParamNEW(root, "type", this, ParticleSystem, setType)
     130  LoadParam(root, "type", this, ParticleSystem, setType)
    131131      .describe("sets the type of the Particles, (dot, spark, sprite or model)");
    132132
Note: See TracChangeset for help on using the changeset viewer.