- Timestamp:
- Dec 3, 2008, 3:11:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2308 r2319 78 78 XMLPortObject(Pawn, WeaponSlot, "weaponslots", setWeaponSlot, getWeaponSlot, xmlelement, mode); 79 79 XMLPortObject(Pawn, WeaponSet, "weaponsets", setWeaponSet, getWeaponSet, xmlelement, mode); 80 //XMLPortObject(Pawn, WeaponPack, "weapons", setWeaponPack, getWeaponPack, xmlelement, mode);80 XMLPortObject(Pawn, WeaponPack, "weapons", setWeaponPack, getWeaponPack, xmlelement, mode); 81 81 82 82 } … … 155 155 156 156 157 157 158 void Pawn::setWeaponSlot(WeaponSlot * wSlot) 158 159 { this->weaponSystem_->attachWeaponSlot(wSlot); } 159 160 WeaponSlot * Pawn::getWeaponSlot(unsigned int index) const 160 161 { return this->weaponSystem_->getWeaponSlotPointer(index); } 161 162 /* 162 163 163 void Pawn::setWeaponPack(WeaponPack * wPack) 164 { this->weaponSystem_->attachWeaponPack(wPack); } 165 WeaponPack * Pawn::getWeaponPack(unsigned int index) const 166 { return this->weaponSystem_->getWeaponPackPointer(index); 167 */ 168 164 { this->weaponSystem_->attachWeaponPack( wPack,wPack->getFireMode() ); } 165 WeaponPack * Pawn::getWeaponPack(unsigned int firemode) const 166 { return this->weaponSystem_->getWeaponPackPointer(firemode); } 167 169 168 void Pawn::setWeaponSet(WeaponSet * wSet) 170 169 { this->weaponSystem_->attachWeaponSet(wSet); }
Note: See TracChangeset
for help on using the changeset viewer.