Changeset 4972 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/weapon_manager.cc
- Timestamp:
- Aug 7, 2005, 10:32:23 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/weapon_manager.cc
r4969 r4972 103 103 { 104 104 static_cast<BaseObject*>(this)->loadParams(root); 105 /* 105 106 106 LoadParam<WeaponManager>(root, "slot-count", this, &WeaponManager::setSlotCount) 107 107 .describe("how many slots(cannons) the WeaponManager can handle"); … … 109 109 LOAD_PARAM_START_CYCLE; 110 110 111 LoadParam<WeaponManager>( root, "Weapons", this, &WeaponManager::loadWeapons)111 LoadParam<WeaponManager>(element, "weapons", this, &WeaponManager::loadWeapons) 112 112 .describe("loads Weapons"); 113 113 // LoadParam<WeaponManager>(root, "Weapon", this, &WeaponManager::addWeapon); 114 114 115 LOAD_PARAM_END_CYCLE; */115 LOAD_PARAM_END_CYCLE; 116 116 } 117 117 … … 141 141 this->parent->addChild(&this->currentSlotConfig[i].position); 142 142 } 143 144 143 } 145 144 … … 156 155 } 157 156 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 */ 158 163 void WeaponManager::setSlotPosition(int slot, const Vector& position) 159 164 { … … 162 167 } 163 168 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 */ 164 175 void WeaponManager::setSlotDirection(int slot, const Quaternion& rotation) 165 176 { … … 171 182 /** 172 183 * adds a weapon to the selected weaponconfiguration into the selected slot 173 * @param the weapon to add174 * @param an identifier for the slot: number between 0..7 if not specified: slotID=next free slot175 * @param an identifier for the weapon configuration, number between 0..3184 * @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 176 187 * 177 188 * 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.