Changeset 11164 for code/branches/sagerjFS16/src/orxonox/weaponsystem
- Timestamp:
- Apr 14, 2016, 1:11:00 PM (9 years ago)
- Location:
- code/branches/sagerjFS16/src/orxonox/weaponsystem
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sagerjFS16/src/orxonox/weaponsystem/Weapon.cc
r11071 r11164 134 134 } 135 135 136 void Weapon::release(unsigned int mode) 137 {orxout() << "release weapon " << mode << endl;} 138 136 139 /** 137 140 @brief -
code/branches/sagerjFS16/src/orxonox/weaponsystem/Weapon.h
r11071 r11164 53 53 54 54 void fire(unsigned int mode); 55 void release(unsigned int mode); 55 56 void reload(); 56 57 -
code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponMode.cc
r11153 r11164 169 169 } 170 170 171 void WeaponMode::release() 171 void WeaponMode::release(float* reloadTime) 172 {orxout() << "release wmode " << reloadTime << endl;} 172 173 173 174 bool WeaponMode::reload() -
code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponMode.h
r11142 r11164 58 58 59 59 virtual bool fire(float* reloadTime); 60 virtual void release(float* reloadTime); 60 61 bool reload(); 61 62 -
code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponPack.cc
r11071 r11164 78 78 for (Weapon* weapon : this->weapons_) 79 79 weapon->fire(weaponmode); 80 } 81 82 void WeaponPack::release(unsigned int weaponmode) 83 { 84 for (Weapon* weapon : this->weapons_) 85 weapon->release(weaponmode); 86 orxout() << "release wpack " << weaponmode << endl; 80 87 } 81 88 -
code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponPack.h
r11071 r11164 47 47 48 48 void fire(unsigned int weaponmode); 49 void release(unsigned int weaponmode); 49 50 void reload(); 50 51 -
code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponSet.cc
r11071 r11164 68 68 } 69 69 70 void WeaponSet::release() 71 { 72 73 // Fire all WeaponPacks with their defined weaponmode 74 for (const auto& mapEntry : this->weaponpacks_) 75 if (mapEntry.second != WeaponSystem::WEAPON_MODE_UNASSIGNED) 76 mapEntry.first->release(mapEntry.second); 77 orxout() << "release wset " << endl; 78 79 } 80 70 81 void WeaponSet::reload() 71 82 { -
code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponSet.h
r11071 r11164 47 47 48 48 void fire(); 49 void release(); 49 50 void reload(); 50 51 -
code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponSystem.cc
r11153 r11164 299 299 if (it != this->weaponSets_.end() && it->second) 300 300 it->second->release(); 301 orxout() << "release wsys " << firemode << endl; 301 302 } 302 303 -
code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponSystem.h
r11153 r11164 75 75 76 76 void fire(unsigned int firemode); 77 void release(unsigned int firemode); 77 78 void reload(); 78 void release(unsigned int firemode);79 79 80 80 Munition * getMunition(SubclassIdentifier<Munition> * identifier);
Note: See TracChangeset
for help on using the changeset viewer.