Changeset 2308 for code/branches/weapon2/src/orxonox/objects/worldentities
- Timestamp:
- Dec 2, 2008, 7:51:46 PM (16 years ago)
- Location:
- code/branches/weapon2/src/orxonox/objects/worldentities/pawns
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2288 r2308 77 77 78 78 XMLPortObject(Pawn, WeaponSlot, "weaponslots", setWeaponSlot, getWeaponSlot, xmlelement, mode); 79 XMLPortObject(Pawn, WeaponSet, "weaponsets", setWeaponSet, getWeaponSet, xmlelement, mode); 79 80 //XMLPortObject(Pawn, WeaponPack, "weapons", setWeaponPack, getWeaponPack, xmlelement, mode); 80 81 … … 153 154 } 154 155 156 155 157 void Pawn::setWeaponSlot(WeaponSlot * wSlot) 156 { 157 this->weaponSystem_->attachWeaponSlot(wSlot);158 }158 { this->weaponSystem_->attachWeaponSlot(wSlot); } 159 WeaponSlot * Pawn::getWeaponSlot(unsigned int index) const 160 { return this->weaponSystem_->getWeaponSlotPointer(index); } 159 161 160 WeaponSlot * Pawn::getWeaponSlot(unsigned int index) const 161 { 162 return this->weaponSystem_->getWeaponSlotPointer(index); 163 } 162 /* 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 169 void Pawn::setWeaponSet(WeaponSet * wSet) 170 { this->weaponSystem_->attachWeaponSet(wSet); } 171 WeaponSet * Pawn::getWeaponSet(unsigned int index) const 172 { return this->weaponSystem_->getWeaponSetPointer(index); } 164 173 165 174 } -
code/branches/weapon2/src/orxonox/objects/worldentities/pawns/Pawn.h
r2288 r2308 81 81 void setWeaponSlot(WeaponSlot * wSlot); 82 82 WeaponSlot * getWeaponSlot(unsigned int index) const; 83 // void setWeaponPack(WeaponPack * wPack); 84 // WeaponPack * getWeaponPack(unsigned int index) const; 85 void setWeaponSet(WeaponSet * wSet); 86 WeaponSet * getWeaponSet(unsigned int index) const; 83 87 84 88 protected:
Note: See TracChangeset
for help on using the changeset viewer.