- Timestamp:
- Apr 8, 2009, 12:36:08 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/objects/weaponSystem/WeaponSystem.cc
- Property svn:mergeinfo changed
/code/branches/weaponsystem/src/orxonox/objects/weaponSystem/WeaponSystem.cc (added) merged: 2778,2804,2852
r2710 r2907 38 38 39 39 40 /* WEAPONSYSTEM 41 * creates the WeaponSystem and the ability to use weapons and munition 42 * loads the weapon the whole weaponSystem setting from an xml file 40 /* WeaponSystem 43 41 * 42 * www.orxonox.net/wiki/WeaponSystem 44 43 */ 45 44 … … 52 51 RegisterObject(WeaponSystem); 53 52 54 this->activeWeaponSet_ = 0;55 53 this->parentPawn_ = 0; 56 54 } … … 84 82 } 85 83 86 //returns the Pointer to the munitionType 84 85 //returns the Pointer to the munitionType, if this munitionType doesn't exist returns 0, see Weapon::attachNeededMunition 87 86 Munition * WeaponSystem::getMunitionType(std::string munitionType) 88 87 { 89 //COUT(0) << "WeaponSystem::getMunitionType " << munitionType << std::endl;90 88 std::map<std::string, Munition *>::const_iterator it = this->munitionSet_.find(munitionType); 91 89 if (it != this->munitionSet_.end()) … … 96 94 97 95 98 /*99 //the first weaponSet is at n=0100 void WeaponSystem::setActiveWeaponSet(unsigned int n)101 {102 if (n < this->weaponSets_.size())103 this->activeWeaponSet_ = this->weaponSets_[n];104 else105 this->activeWeaponSet_ = this->weaponSets_[0];106 }107 */108 109 110 96 //n is the n'th weaponSet, starting with zero 111 //SpaceShip.cc only needs to have the keybinding to a specific Set-number n 97 //SpaceShip.cc only needs to have the keybinding to a specific Set-number n (=firemode) 98 //in future this could be well defined and not only for 3 different WeaponModes 112 99 void WeaponSystem::fire(WeaponMode::Enum n) 113 100 { … … 125 112 break; 126 113 } 127 //COUT(0) << "WeaponSystem::fire" << std::endl;128 114 if (set < (int)this->weaponSets_.size()) 129 //COUT(0) << "WeaponSystem::fire - after if" << std::endl;130 115 this->weaponSets_[set]->fire(); 131 116 } - Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.