- Timestamp:
- Nov 12, 2008, 4:45:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponSystem.cc
r2186 r2203 52 52 this->activeWeaponSet_ = 0; 53 53 this->parentSpaceShip_ = 0; 54 this->attachedMunition_ =0;55 54 } 56 55 … … 64 63 wSet->setParentWeaponSystem(this); 65 64 } 65 66 void WeaponSystem::setNewMunition(std::string munitionType, Munition * munitionToAdd) 67 { 68 this->munitionSet_[munitionType] = munitionToAdd; 69 } 70 Munition * WeaponSystem::getMunitionType(std::string munitionType) 71 { 72 return this->munitionSet_[munitionType]; 73 } 74 66 75 67 76 /* … … 98 107 } 99 108 100 Munition * WeaponSystem::getAttachedMunitionPointer()101 {102 return this->attachedMunition_;103 }104 105 void WeaponSystem::addMunitionType(Munition *munitionPointer)106 {107 108 109 if (munitionPointer != NULL) //gewährleiste, dass munitionPointer auf etwas sinnvolles zeigt110 this->attachedMunition_ = munitionPointer;111 else112 ;//was?113 114 }115 116 117 109 }
Note: See TracChangeset
for help on using the changeset viewer.