Changeset 10969
- Timestamp:
- Dec 11, 2015, 3:20:17 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/FightingController.cc
r10953 r10969 151 151 if (!this->bDodge_) 152 152 { 153 // orxout(internal_error) << "attacking" << endl;154 153 this->bStartedDodging_ = false; 155 154 … … 159 158 else if (bTargetIsLookingAtThis || diffLength < 700.0f) 160 159 { 161 // orxout(internal_error) << "dodging" << endl;162 160 if (!this->bStartedDodging_) 163 161 { … … 170 168 if (diffLength < 1000) 171 169 { 172 // orxout(internal_error) << "looking" << endl;173 170 this->stopMoving(); 174 171 this->startLookingAtTarget(); … … 177 174 else 178 175 { 179 // orxout(internal_error) << "closing up" << endl;180 176 this->setTargetPosition(this->positionOfTarget_ - diffUnit * 300.0f); 181 177 } … … 354 350 if (wName == "RocketFire") 355 351 this->rocketsLeft_ = 10; 356 // this->rocketsLeft_ = orxonox_cast<Pawn*>(this->getControllableEntity())->getWeaponSystem()->getMunition(&munition)->getNumMunitionInCurrentMagazine(wMode);357 352 if(this->getFiremode(wName) == -1) //only add a weapon, if it is "new" 358 353 weaponModes_[wName] = wMode->getMode(); … … 361 356 if(weaponModes_.size())//at least one weapon detected 362 357 this->bSetupWorked = true; 363 } //pawn->weaponSystem_->getMunition(SubclassIdentifier< Munition > *identifier)->getNumMunition (WeaponMode *user);358 } 364 359 } 365 360
Note: See TracChangeset
for help on using the changeset viewer.