Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 7, 2005, 10:32:23 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: many loadParams

File:
1 edited

Legend:

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

    r4969 r4972  
    103103{
    104104  static_cast<BaseObject*>(this)->loadParams(root);
    105 /*
     105
    106106  LoadParam<WeaponManager>(root, "slot-count", this, &WeaponManager::setSlotCount)
    107107      .describe("how many slots(cannons) the WeaponManager can handle");
     
    109109  LOAD_PARAM_START_CYCLE;
    110110
    111   LoadParam<WeaponManager>(root, "Weapons", this, &WeaponManager::loadWeapons)
     111  LoadParam<WeaponManager>(element, "weapons", this, &WeaponManager::loadWeapons)
    112112      .describe("loads Weapons");
    113113      // LoadParam<WeaponManager>(root, "Weapon", this, &WeaponManager::addWeapon);
    114114
    115   LOAD_PARAM_END_CYCLE;*/
     115  LOAD_PARAM_END_CYCLE;
    116116}
    117117
     
    141141      this->parent->addChild(&this->currentSlotConfig[i].position);
    142142  }
    143 
    144143}
    145144
     
    156155}
    157156
     157
     158/**
     159 * sets the position of the Slot relative to the parent
     160 * @param slot the slot to set-up
     161 * @param position the position of the given slot
     162 */
    158163void WeaponManager::setSlotPosition(int slot, const Vector& position)
    159164{
     
    162167}
    163168
     169
     170/**
     171 * sets the relative rotation of the slot to its parent
     172 * @param slot the slot to set-up
     173 * @param rotation the relative rotation of the given slot
     174 */
    164175void WeaponManager::setSlotDirection(int slot, const Quaternion& rotation)
    165176{
     
    171182/**
    172183 * adds a weapon to the selected weaponconfiguration into the selected slot
    173  * @param the weapon to add
    174  * @param an identifier for the slot: number between 0..7 if not specified: slotID=next free slot
    175  * @param an identifier for the weapon configuration, number between 0..3
     184 * @param weapon the weapon to add
     185 * @param configID an identifier for the slot: number between 0..7 if not specified: slotID=next free slot
     186 * @param slotID an identifier for the weapon configuration, number between 0..3
    176187 *
    177188 * if you add explicitly a weapon at config:n, slot:m, the weapon placed at this location will be
Note: See TracChangeset for help on using the changeset viewer.