Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2015, 3:20:17 PM (8 years ago)
Author:
gania
Message:

follow-up commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/FightingController.cc

    r10953 r10969  
    151151            if (!this->bDodge_)
    152152            {
    153                 // orxout(internal_error) << "attacking" << endl;
    154153                this->bStartedDodging_ = false;
    155154
     
    159158            else if (bTargetIsLookingAtThis || diffLength < 700.0f)
    160159            {
    161                 // orxout(internal_error) << "dodging" << endl;
    162160                if (!this->bStartedDodging_)
    163161                {
     
    170168                if (diffLength < 1000)
    171169                {
    172                 // orxout(internal_error) << "looking" << endl;                   
    173170                    this->stopMoving();
    174171                    this->startLookingAtTarget();
     
    177174                else
    178175                {
    179                 // orxout(internal_error) << "closing up" << endl;                   
    180176                    this->setTargetPosition(this->positionOfTarget_ - diffUnit * 300.0f);
    181177                }
     
    354350                        if (wName == "RocketFire")
    355351                            this->rocketsLeft_ = 10;
    356                             // this->rocketsLeft_ = orxonox_cast<Pawn*>(this->getControllableEntity())->getWeaponSystem()->getMunition(&munition)->getNumMunitionInCurrentMagazine(wMode);
    357352                        if(this->getFiremode(wName) == -1) //only add a weapon, if it is "new"
    358353                            weaponModes_[wName] = wMode->getMode();
     
    361356                if(weaponModes_.size())//at least one weapon detected
    362357                    this->bSetupWorked = true;
    363             }//pawn->weaponSystem_->getMunition(SubclassIdentifier< Munition > *identifier)->getNumMunition (WeaponMode *user);
     358            }
    364359        }
    365360
Note: See TracChangeset for help on using the changeset viewer.