Changeset 11059 for code/branches/cpp11_v3/src/orxonox/weaponsystem
- Timestamp:
- Jan 13, 2016, 10:19:21 PM (9 years ago)
- Location:
- code/branches/cpp11_v3/src/orxonox/weaponsystem
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3/src/orxonox/weaponsystem/Weapon.h
r11054 r11059 57 57 void addWeaponmode(WeaponMode* weaponmode); 58 58 WeaponMode* getWeaponmode(unsigned int index) const; 59 inline std::multimap<unsigned int, WeaponMode*>* getAllWeaponmodes()60 { return &weaponmodes_; }59 inline const std::multimap<unsigned int, WeaponMode*>& getAllWeaponmodes() const 60 { return weaponmodes_; } 61 61 inline int getNumWeaponModes() const 62 62 { return weaponmodes_.size(); } -
code/branches/cpp11_v3/src/orxonox/weaponsystem/WeaponPack.cc
r11054 r11059 124 124 } 125 125 126 std::vector<Weapon*>* WeaponPack::getAllWeapons()127 {128 return &weapons_;129 }130 131 126 void WeaponPack::addDefaultWeaponmodeLink(DefaultWeaponmodeLink* link) 132 127 { -
code/branches/cpp11_v3/src/orxonox/weaponsystem/WeaponPack.h
r11054 r11059 52 52 void removeWeapon(Weapon * weapon); 53 53 Weapon * getWeapon(unsigned int index) const; 54 std::vector<Weapon*>* getAllWeapons(); 54 inline const std::vector<Weapon*>& getAllWeapons() const 55 { return weapons_; } 55 56 56 57 inline size_t getNumWeapons() const -
code/branches/cpp11_v3/src/orxonox/weaponsystem/WeaponSystem.cc
r11054 r11059 240 240 } 241 241 242 std::vector<WeaponPack *> * WeaponSystem::getAllWeaponPacks()243 {244 return &weaponPacks_;245 }246 247 242 bool WeaponSystem::swapWeaponSlots(WeaponSlot * wSlot1, WeaponSlot * wSlot2) 248 243 { -
code/branches/cpp11_v3/src/orxonox/weaponsystem/WeaponSystem.h
r11052 r11059 67 67 void removeWeaponPack(WeaponPack * wPack); 68 68 WeaponPack * getWeaponPack(unsigned int index) const; 69 std::vector<WeaponPack *> * getAllWeaponPacks(); 69 inline const std::vector<WeaponPack *>& getAllWeaponPacks() const 70 { return weaponPacks_; } 70 71 71 72 // configure slots and firemodes
Note: See TracChangeset
for help on using the changeset viewer.