- Timestamp:
- Apr 10, 2009, 12:05:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapons/src/orxonox/objects/weaponSystem/WeaponPack.h
r2912 r2914 33 33 #include "OrxonoxPrereqs.h" 34 34 35 #include < vector>35 #include <set> 36 36 37 37 #include "core/BaseObject.h" … … 47 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 48 48 49 void fire(); 50 51 Weapon * getWeaponPointer(unsigned int n) const; 52 int getSize() const; 53 54 void setFireMode(unsigned int firemode); 55 unsigned int getFireMode() const; 49 void fire(unsigned int weaponmode); 56 50 57 51 void addWeapon(Weapon * weapon); 58 const Weapon * getWeapon(unsigned int index) const; 52 Weapon * getWeapon(unsigned int index) const; 53 54 inline size_t getNumWeapons() const 55 { return this->weapons_.size(); } 56 57 unsigned int getDesiredWeaponmode(unsigned int firemode) { return 0; } // TODO 59 58 60 59 void attachNeededMunitionToAllWeapons(); 61 60 62 //functions with effect to all weapons of the weaponPack63 //functions needed for creating Pointer to the right objects (-->Pawn.cc)64 61 inline void setWeaponSystem(WeaponSystem *weaponSystem) 65 62 { this->weaponSystem_ = weaponSystem; this->setWeaponSystemToAllWeapons(weaponSystem); } … … 70 67 void setWeaponSystemToAllWeapons(WeaponSystem * weaponSystem); 71 68 72 std::vector<Weapon *> weapons_; 73 WeaponSystem *weaponSystem_; 74 unsigned int firemode_; 69 std::set<Weapon *> weapons_; 70 WeaponSystem * weaponSystem_; 75 71 }; 76 72 }
Note: See TracChangeset
for help on using the changeset viewer.