Changeset 2097 for code/trunk/src/orxonox/objects/weaponSystem/WeaponSet.cc
- Timestamp:
- Nov 1, 2008, 10:27:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/weaponSystem/WeaponSet.cc
r2096 r2097 38 38 namespace orxonox 39 39 { 40 WeaponSet::WeaponSet( int k)40 WeaponSet::WeaponSet(BaseObject* creator, int k) : BaseObject(creator) 41 41 { 42 42 RegisterObject(WeaponSet); … … 44 44 for (int i=0;i<k;i++) 45 45 { 46 this->wSlotNew = new WeaponSlot(); 47 attachWeaponSlot(wSlotNew); 46 attachWeaponSlot(new WeaponSlot(this)); 48 47 } 49 48 } … … 69 68 } 70 69 71 WeaponSlot * getWeaponSlotPointer(int n)70 WeaponSlot * WeaponSet::getWeaponSlotPointer(int n) 72 71 { 73 72 return this->weaponSlots_[n];
Note: See TracChangeset
for help on using the changeset viewer.