- Timestamp:
- Apr 18, 2009, 6:14:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapons/src/orxonox/objects/weaponSystem/WeaponPack.h
r2915 r2918 48 48 49 49 void fire(unsigned int weaponmode); 50 void reload(); 50 51 51 52 void addWeapon(Weapon * weapon); … … 61 62 unsigned int getDesiredWeaponmode(unsigned int firemode) const; 62 63 63 inline void setWeaponSystem(WeaponSystem *weaponSystem) 64 { 65 this->weaponSystem_ = weaponSystem; 66 this->setWeaponSystemToAllWeapons(); 67 this->attachNeededMunitionToAllWeapons(); 68 } 64 inline void setWeaponSystem(WeaponSystem * weaponSystem) 65 { this->weaponSystem_ = weaponSystem; this->notifyWeapons(); } 69 66 inline WeaponSystem * getWeaponSystem() const 70 67 { return this->weaponSystem_; } 71 68 72 69 private: 73 void setWeaponSystemToAllWeapons(); 74 void attachNeededMunitionToAllWeapons(); 70 void notifyWeapons(); 75 71 76 72 std::set<Weapon *> weapons_;
Note: See TracChangeset
for help on using the changeset viewer.