Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5671 in orxonox.OLD for trunk/src/world_entities


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/world_entities
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/skybox.cc

    r5652 r5671  
    5555  static_cast<WorldEntity*>(this)->loadParams(root);
    5656
    57   LoadParamNEW(root, "Materialset", this, SkyBox, setTexture)
     57  LoadParam(root, "Materialset", this, SkyBox, setTexture)
    5858      .describe("Sets the material on the SkyBox. The string must be the path relative to the data-dir, and without a trailing .jpg");
    5959
    60   LoadParamNEW(root, "Size", this, SkyBox, setSize)
     60  LoadParam(root, "Size", this, SkyBox, setSize)
    6161      .describe("Sets the Size of the SkyBox (normally this should be 90% of the maximal viewing Distance).");
    6262}
  • trunk/src/world_entities/terrain.cc

    r5654 r5671  
    104104  static_cast<WorldEntity*>(this)->loadParams(root);
    105105
    106   LoadParamNEW(root, "vegetation", this, Terrain, loadVegetation)
     106  LoadParam(root, "vegetation", this, Terrain, loadVegetation)
    107107      .describe("the fileName of the vegetation, that should be loaded onto this terrain. (must be relative to the data-dir)") ;
    108108}
  • trunk/src/world_entities/weapons/aim.cc

    r5652 r5671  
    7070  static_cast<PNode*>(this)->loadParams(root);
    7171
    72   LoadParamNEW(root, "texture", this, Aim, setTexture)
     72  LoadParam(root, "texture", this, Aim, setTexture)
    7373      .describe("the texture-file to load onto the Aim");
    7474
    75   LoadParamNEW(root, "size", this, Aim, setSize)
     75  LoadParam(root, "size", this, Aim, setSize)
    7676      .describe("the size of the Aim in Pixels");
    7777
    78   LoadParamNEW(root, "rotation-speed", this, Aim, setRotationSpeed)
     78  LoadParam(root, "rotation-speed", this, Aim, setRotationSpeed)
    7979      .describe("the Speed with which the Aim should rotate");
    8080}
  • trunk/src/world_entities/weapons/crosshair.cc

    r5652 r5671  
    8484  static_cast<EventListener*>(this)->loadParams(root);
    8585
    86   LoadParamNEW(root, "texture", this, Crosshair, setTexture)
     86  LoadParam(root, "texture", this, Crosshair, setTexture)
    8787      .describe("the texture-file to load onto the Crosshair");
    8888
    89   LoadParamNEW(root, "size", this, Crosshair, setSize)
     89  LoadParam(root, "size", this, Crosshair, setSize)
    9090      .describe("the size of the Crosshair in Pixels");
    9191
    92   LoadParamNEW(root, "rotation-speed", this, Crosshair, setRotationSpeed)
     92  LoadParam(root, "rotation-speed", this, Crosshair, setRotationSpeed)
    9393      .describe("the Speed with which the Crosshair should rotate");
    9494}
  • trunk/src/world_entities/weapons/weapon.cc

    r5652 r5671  
    109109  static_cast<WorldEntity*>(this)->loadParams(root);
    110110
    111   LoadParamNEW(root, "projectile", this, Weapon, setProjectileType)
     111  LoadParam(root, "projectile", this, Weapon, setProjectileType)
    112112      .describe("Sets the name of the Projectile to load onto the Entity");
    113113
    114   LoadParamNEW(root, "emission-point", this, Weapon, setEmissionPoint)
     114  LoadParam(root, "emission-point", this, Weapon, setEmissionPoint)
    115115      .describe("Sets the Point of emission of this weapon");
    116116
    117   LoadParamNEW(root, "state-duration", this, Weapon, setStateDuration)
     117  LoadParam(root, "state-duration", this, Weapon, setStateDuration)
    118118      .describe("Sets the duration of a given state (1: state-Name; 2: duration in seconds)");
    119119
    120   LoadParamNEW(root, "action-sound", this, Weapon, setActionSound)
     120  LoadParam(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}
  • trunk/src/world_entities/weapons/weapon_manager.cc

    r5654 r5671  
    119119  static_cast<BaseObject*>(this)->loadParams(root);
    120120
    121   LoadParamNEW(root, "slot-count", this, WeaponManager, setSlotCount)
     121  LoadParam(root, "slot-count", this, WeaponManager, setSlotCount)
    122122      .describe("how many slots(cannons) the WeaponManager can handle");
    123123
  • trunk/src/world_entities/world_entity.cc

    r5652 r5671  
    7676
    7777  // Model Loading
    78   LoadParamNEW(root, "model", this, WorldEntity, loadModel)
     78  LoadParam(root, "model", this, WorldEntity, loadModel)
    7979      .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)")
    8080      ->defaultValues(2, NULL, 1.0f);
Note: See TracChangeset for help on using the changeset viewer.