Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2008, 10:27:12 PM (15 years ago)
Author:
landauf
Message:

adopted weapon classes to the new hierarchy (with a creator pointer)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/weaponSystem/WeaponSet.cc

    r2096 r2097  
    3838namespace orxonox
    3939{
    40     WeaponSet::WeaponSet(int k)
     40    WeaponSet::WeaponSet(BaseObject* creator, int k) : BaseObject(creator)
    4141    {
    4242        RegisterObject(WeaponSet);
     
    4444        for (int i=0;i<k;i++)
    4545        {
    46             this->wSlotNew = new WeaponSlot();
    47             attachWeaponSlot(wSlotNew);
     46            attachWeaponSlot(new WeaponSlot(this));
    4847        }
    4948    }
     
    6968    }
    7069
    71     WeaponSlot * getWeaponSlotPointer(int n)
     70    WeaponSlot * WeaponSet::getWeaponSlotPointer(int n)
    7271    {
    7372        return this->weaponSlots_[n];
Note: See TracChangeset for help on using the changeset viewer.