Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5652 in orxonox.OLD for trunk/src/lib/physics/fields


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/physics/fields/field.cc

    r5357 r5652  
    6060  static_cast<PNode*>(this)->loadParams(root);
    6161
    62   LoadParam<Field>(root, "magnitude", this, &Field::setMagnitude)
    63       .describe("sets the magnitude of this Field");
     62  LoadParamNEW(root, "magnitude", this, Field, setMagnitude)
     63      .describe("sets the magnitude of this Field")
     64      ->defaultValues(1, 1);
    6465
    65   LoadParam<Field>(root, "attenuation", this, &Field::setAttenuation)
     66  LoadParamNEW(root, "attenuation", this, Field, setAttenuation)
    6667      .describe("sets the attenuation of this Field.");
    6768
Note: See TracChangeset for help on using the changeset viewer.