- Timestamp:
- Nov 5, 2008, 7:57:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponSlot.cc
r2098 r2145 36 36 37 37 38 39 38 namespace orxonox 40 39 { 41 WeaponSlot::WeaponSlot(BaseObject* creator) : BaseObject(creator)40 WeaponSlot::WeaponSlot(BaseObject* creator) : PositionableEntity(creator) 42 41 { 43 42 RegisterObject(WeaponSlot); 44 43 45 44 this->unlimitedAmmo_ = false; 46 47 45 this->attachedWeapon_ = 0; 48 46 this->parentWeaponSet_ = 0; 47 this->setObjectMode(0x0); 49 48 } 50 49 … … 53 52 } 54 53 55 void WeaponSlot::attachWeapon(Weapon *weapon Name)54 void WeaponSlot::attachWeapon(Weapon *weaponPointer) 56 55 { 56 this->attachedWeapon_ = weaponPointer; 57 } 57 58 58 }59 59 60 60 /*sets the munition type … … 69 69 void WeaponSlot::fire() 70 70 { 71 71 this->attachedWeapon_->fire(); 72 72 } 73 73
Note: See TracChangeset
for help on using the changeset viewer.