Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5652 in orxonox.OLD for trunk/src/world_entities/weapons/weapon.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/world_entities/weapons/weapon.cc

    r5500 r5652  
    109109  static_cast<WorldEntity*>(this)->loadParams(root);
    110110
    111   LoadParam<Weapon>(root, "projectile", this, &Weapon::setProjectileType)
     111  LoadParamNEW(root, "projectile", this, Weapon, setProjectileType)
    112112      .describe("Sets the name of the Projectile to load onto the Entity");
    113113
    114   LoadParam<Weapon>(root, "emission-point", this, &Weapon::setEmissionPoint)
     114  LoadParamNEW(root, "emission-point", this, Weapon, setEmissionPoint)
    115115      .describe("Sets the Point of emission of this weapon");
    116116
    117   LoadParam<Weapon>(root, "state-duration", this, &Weapon::setStateDuration)
     117  LoadParamNEW(root, "state-duration", this, Weapon, setStateDuration)
    118118      .describe("Sets the duration of a given state (1: state-Name; 2: duration in seconds)");
    119119
    120   LoadParam<Weapon>(root, "action-sound", this, &Weapon::setActionSound)
     120  LoadParamNEW(root, "action-sound", this, Weapon, setActionSound)
    121121      .describe("Sets a given sound to an action (1: action-Name; 2: name of the sound (relative to the Data-Path))");
    122122}
Note: See TracChangeset for help on using the changeset viewer.