- Timestamp:
- Dec 3, 2008, 3:11:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponSystem.cc
r2308 r2319 36 36 37 37 #include "WeaponSystem.h" 38 #include "WeaponPack.h" 38 39 39 40 40 /* WEAPONSYSTEM … … 52 52 53 53 this->activeWeaponSet_ = 0; 54 this->parent SpaceShip_ = 0;54 this->parentPawn_ = 0; 55 55 } 56 56 … … 59 59 } 60 60 61 void WeaponSystem::attachWeaponPack(WeaponPack *wPack, int setNumber)61 void WeaponSystem::attachWeaponPack(WeaponPack *wPack, unsigned int firemode) 62 62 { 63 this->weaponSets_[setNumber]->attachWeaponPack(wPack); 63 this->weaponSets_[firemode]->attachWeaponPack(wPack); 64 this->weaponPacks_[firemode] = wPack; 65 wPack->setParentWeaponSystem(this); 64 66 } 65 67 … … 125 127 } 126 128 129 WeaponPack * WeaponSystem::getWeaponPackPointer(unsigned int n) 130 { 131 if (n < this->weaponPacks_.size()) 132 return this->weaponPacks_[n]; 133 else 134 return 0; 135 } 136 127 137 void WeaponSystem::XMLPort(Element& xmlelement, XMLPort::Mode mode) 128 138 {
Note: See TracChangeset
for help on using the changeset viewer.