Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Nov 19, 2005, 5:08:53 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better loadparam start and end-cycle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon_manager.cc

    r5441 r5644  
    122122      .describe("how many slots(cannons) the WeaponManager can handle");
    123123
    124   LOAD_PARAM_START_CYCLE;
     124  LOAD_PARAM_START_CYCLE(root, element);
    125125
    126126  LoadParam<WeaponManager>(element, "weapons", this, &WeaponManager::loadWeapons)
     
    128128      // LoadParam<WeaponManager>(root, "Weapon", this, &WeaponManager::addWeapon);
    129129
    130   LOAD_PARAM_END_CYCLE;
     130  LOAD_PARAM_END_CYCLE(element);
    131131}
    132132
     
    137137void WeaponManager::loadWeapons(const TiXmlElement* root)
    138138{
    139   LOAD_PARAM_START_CYCLE;
     139  LOAD_PARAM_START_CYCLE(root, element);
    140140
    141141  Weapon* newWeapon = dynamic_cast<Weapon*>(Factory::getFirst()->fabricate(element));
     
    143143
    144144
    145   LOAD_PARAM_END_CYCLE;
     145  LOAD_PARAM_END_CYCLE(element);
    146146}
    147147
Note: See TracChangeset for help on using the changeset viewer.