Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 3, 2015, 3:56:41 PM (9 years ago)
Author:
gania
Message:

added a canFire() function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/AI_HS15/src/orxonox/controllers/SectionController.cc

    r10759 r10762  
    5858            return;
    5959       
    60         /*if (this->target_)
    61         {
    62             this->aimAtTarget();
    63             this->doFire();
    64             this->bShooting_ = true;
    65         }*/
     60       
    6661        if (this->bHasTargetPosition_)
    6762        {
     
    9186        if (this->target_ && this->myWingman_)
    9287            this->myWingman_->setTarget(this->target_);
     88
     89        if (canFire())
     90            doFire();
    9391               
    9492
Note: See TracChangeset for help on using the changeset viewer.