- Timestamp:
- Dec 3, 2008, 4:30:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2319 r2327 55 55 //WeaponSystem 56 56 weaponSystem_ = new WeaponSystem(this); 57 /* 57 58 WeaponSet * weaponSet1 = new WeaponSet(this,1); 58 59 this->weaponSystem_->attachWeaponSet(weaponSet1); 59 60 //totally bad solution... 60 61 weaponSet1->setParentWeaponSystem(weaponSystem_); 61 62 */ 62 63 63 64 this->registerVariables(); … … 157 158 158 159 void Pawn::setWeaponSlot(WeaponSlot * wSlot) 159 { this->weaponSystem_->attachWeaponSlot(wSlot); } 160 { 161 COUT(0) << "Pawn::setWeaponSlot" << std::endl; 162 this->weaponSystem_->attachWeaponSlot(wSlot); } 160 163 WeaponSlot * Pawn::getWeaponSlot(unsigned int index) const 161 164 { return this->weaponSystem_->getWeaponSlotPointer(index); } 162 165 163 166 void Pawn::setWeaponPack(WeaponPack * wPack) 164 { this->weaponSystem_->attachWeaponPack( wPack,wPack->getFireMode() ); } 167 { 168 COUT(0) << "Pawn::setWeaponPack" << std::endl; 169 this->weaponSystem_->attachWeaponPack( wPack,wPack->getFireMode() ); } 165 170 WeaponPack * Pawn::getWeaponPack(unsigned int firemode) const 166 171 { return this->weaponSystem_->getWeaponPackPointer(firemode); } 167 172 168 173 void Pawn::setWeaponSet(WeaponSet * wSet) 169 { this->weaponSystem_->attachWeaponSet(wSet); } 174 { 175 COUT(0) << "Pawn::setWeaponSet" << std::endl; 176 this->weaponSystem_->attachWeaponSet(wSet); } 170 177 WeaponSet * Pawn::getWeaponSet(unsigned int index) const 171 178 { return this->weaponSystem_->getWeaponSetPointer(index); }
Note: See TracChangeset
for help on using the changeset viewer.