Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 5, 2008, 7:57:16 PM (16 years ago)
Author:
polakma
Message:

added firemodes and a lot of other things

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponSlot.cc

    r2098 r2145  
    3636
    3737
    38 
    3938namespace orxonox
    4039{
    41     WeaponSlot::WeaponSlot(BaseObject* creator) : BaseObject(creator)
     40    WeaponSlot::WeaponSlot(BaseObject* creator) : PositionableEntity(creator)
    4241    {
    4342        RegisterObject(WeaponSlot);
    4443
    4544        this->unlimitedAmmo_ = false;
    46 
    4745        this->attachedWeapon_ = 0;
    4846        this->parentWeaponSet_ = 0;
     47        this->setObjectMode(0x0);
    4948    }
    5049
     
    5352    }
    5453
    55     void WeaponSlot::attachWeapon(Weapon *weaponName)
     54    void WeaponSlot::attachWeapon(Weapon *weaponPointer)
    5655    {
     56        this->attachedWeapon_ = weaponPointer;
     57    }
    5758
    58     }
    5959
    6060    /*sets the munition type
     
    6969    void WeaponSlot::fire()
    7070    {
    71 
     71        this->attachedWeapon_->fire();
    7272    }
    7373
Note: See TracChangeset for help on using the changeset viewer.