- Timestamp:
- Dec 3, 2008, 4:30:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponSystem.cc
r2319 r2327 46 46 namespace orxonox 47 47 { 48 CreateFactory(WeaponSystem); 48 49 49 50 WeaponSystem::WeaponSystem(BaseObject* creator) : BaseObject(creator) … … 61 62 void WeaponSystem::attachWeaponPack(WeaponPack *wPack, unsigned int firemode) 62 63 { 64 wPack->setParentWeaponSystem(this); 63 65 this->weaponSets_[firemode]->attachWeaponPack(wPack); 64 66 this->weaponPacks_[firemode] = wPack; 65 wPack->setParentWeaponSystem(this);66 67 } 67 68 68 69 void WeaponSystem::attachWeaponSlot(WeaponSlot *wSlot) 69 70 { 71 wSlot->setParentWeaponSystem(this); 70 72 this->weaponSlots_.push_back(wSlot); 71 wSlot->setParentWeaponSystem(this);72 73 } 73 74 74 75 void WeaponSystem::attachWeaponSet(WeaponSet *wSet) 75 76 { 77 wSet->setParentWeaponSystem(this); 76 78 this->weaponSets_.push_back(wSet); 77 wSet->setParentWeaponSystem(this);78 79 } 79 80
Note: See TracChangeset
for help on using the changeset viewer.