- Timestamp:
- Apr 8, 2009, 12:58:47 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
r2907 r2908 38 38 39 39 40 /* WeaponSystem 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 41 43 * 42 * www.orxonox.net/wiki/WeaponSystem43 44 */ 44 45 … … 51 52 RegisterObject(WeaponSystem); 52 53 54 this->activeWeaponSet_ = 0; 53 55 this->parentPawn_ = 0; 54 56 } … … 82 84 } 83 85 84 85 //returns the Pointer to the munitionType, if this munitionType doesn't exist returns 0, see Weapon::attachNeededMunition 86 //returns the Pointer to the munitionType 86 87 Munition * WeaponSystem::getMunitionType(std::string munitionType) 87 88 { 89 //COUT(0) << "WeaponSystem::getMunitionType " << munitionType << std::endl; 88 90 std::map<std::string, Munition *>::const_iterator it = this->munitionSet_.find(munitionType); 89 91 if (it != this->munitionSet_.end()) … … 94 96 95 97 98 /* 99 //the first weaponSet is at n=0 100 void WeaponSystem::setActiveWeaponSet(unsigned int n) 101 { 102 if (n < this->weaponSets_.size()) 103 this->activeWeaponSet_ = this->weaponSets_[n]; 104 else 105 this->activeWeaponSet_ = this->weaponSets_[0]; 106 } 107 */ 108 109 96 110 //n is the n'th weaponSet, starting with zero 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 111 //SpaceShip.cc only needs to have the keybinding to a specific Set-number n 99 112 void WeaponSystem::fire(WeaponMode::Enum n) 100 113 { … … 112 125 break; 113 126 } 127 //COUT(0) << "WeaponSystem::fire" << std::endl; 114 128 if (set < (int)this->weaponSets_.size()) 129 //COUT(0) << "WeaponSystem::fire - after if" << std::endl; 115 130 this->weaponSets_[set]->fire(); 116 131 }
Note: See TracChangeset
for help on using the changeset viewer.