- Timestamp:
- Nov 5, 2008, 7:57:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponSystem.cc
r2106 r2145 45 45 namespace orxonox 46 46 { 47 47 48 WeaponSystem::WeaponSystem(BaseObject* creator) : BaseObject(creator) 48 49 { … … 51 52 this->activeWeaponSet_ = 0; 52 53 this->parentSpaceShip_ = 0; 54 //this->attachedMunition_ =0; 53 55 } 54 56 … … 57 59 } 58 60 59 //creates empty weaponSet60 61 void WeaponSystem::attachWeaponSet(WeaponSet *wSet) 61 62 { … … 64 65 } 65 66 67 /* 66 68 //the first weaponSet is at n=0 67 69 void WeaponSystem::setActiveWeaponSet(unsigned int n) … … 69 71 if (n < this->weaponSets_.size()) 70 72 this->activeWeaponSet_ = this->weaponSets_[n]; 73 else 74 this->activeWeaponSet_ = this->weaponSets_[0]; 71 75 } 76 */ 72 77 73 78 //n is the n'th weaponSet, starting with zero 74 //Space ship.cc only needs to have the keybinding to a specific Set-number n75 void WeaponSystem::fire( unsigned intn)79 //SpaceShip.cc only needs to have the keybinding to a specific Set-number n 80 void WeaponSystem::fire(WeaponMode::Enum n) 76 81 { 77 82 if (n < this->weaponSets_.size()) … … 79 84 } 80 85 81 void WeaponSystem::fire()82 {83 if (this->activeWeaponSet_)84 this->activeWeaponSet_->fire();85 }86 86 87 87 WeaponSet * WeaponSystem::getWeaponSetPointer(unsigned int n) … … 98 98 } 99 99 100 /* 101 void WeaponSystem::addMunitionType(Munition *munitionPointer) 102 { 103 104 105 if (munitionPointer != NULL) //gewährleiste, dass munitionPointer auf etwas sinnvolles zeigt 106 this->attachedMunition_ = munitionPointer; 107 else 108 this->unlimitedAmmo_ = true; 109 110 } 111 */ 112 100 113 }
Note: See TracChangeset
for help on using the changeset viewer.