- Timestamp:
- Dec 3, 2008, 6:26:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/Weapon.cc
r2331 r2337 44 44 this->bulletReadyToShoot_ = true; 45 45 this->magazineReadyToShoot_ = true; 46 this->parentWeaponSystem_ = 0; 47 this->parentWeaponSlot_ = 0; 48 this->munition_ = 0; 46 49 } 47 50 … … 90 93 { 91 94 //create new munition with identifier 95 COUT(0) << "Weapon::attachNeededMunition, create new Munition of Type " << munitionName << std::endl; 92 96 this->munitionIdentifier_ = ClassByString(munitionName); 93 97 this->munition_ = this->munitionIdentifier_.fabricate(this); … … 108 112 { return this->munitionType_; } 109 113 110 Munition * Weapon::getAttachedMunition() 111 { return this->munition_; } 114 Munition * Weapon::getAttachedMunition(std::string munitionType) 115 { 116 COUT(0) << "Weapon::getAttachedMunition, parentWeaponSystem_="<< this->parentWeaponSystem_ << std::endl; 117 this->parentWeaponSystem_->getMunitionType(munitionType); 118 COUT(0) << "Weapon::getAttachedMunition, munition_="<< this->munition_ << std::endl; 119 return this->munition_; } 112 120 113 121 void Weapon::setBulletLoadingTime(float loadingTime)
Note: See TracChangeset
for help on using the changeset viewer.