Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2015, 6:46:20 PM (8 years ago)
Author:
gania
Message:

almost all works now, check AITest.oxw

File:
1 edited

Legend:

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

    r10858 r10859  
    5050    DivisionController::~DivisionController()
    5151    {
    52         if (this->myFollower_)
    53         {
    54             this->myFollower_->takeActionpoints(this->parsedActionpoints_, this->loopActionpoints_, this->bLoop_);
    55             if (this->myWingman_)
    56             {
    57                 this->myWingman_->setAction(Action::FIGHTALL);
    58             }
    59         }
    60         else if (this->myWingman_)
    61         {
    62             this->myWingman_->takeActionpoints(this->parsedActionpoints_, this->loopActionpoints_, this->bLoop_);
    63         }
     52        // if (!(this->parsedActionpoints_.empty() && this->loopActionpoints_.empty()))
     53        // {
     54        //     if (this->myFollower_)
     55        //     {
     56        //         this->myFollower_->takeActionpoints(this->parsedActionpoints_, this->loopActionpoints_, this->bLoop_);
     57        //         if (this->myWingman_)
     58        //         {
     59        //             this->myWingman_->setAction(Action::FIGHTALL);
     60        //         }
     61        //     }
     62        //     else if (this->myWingman_)
     63        //     {
     64        //         this->myWingman_->takeActionpoints(this->parsedActionpoints_, this->loopActionpoints_, this->bLoop_);
     65        //     }   
     66        // }
    6467        for (size_t i = 0; i < this->actionpoints_.size(); ++i)
    6568        {
     
    8588    void DivisionController::action()
    8689    {   
     90        if (!this || !this->getControllableEntity())
     91            return;
    8792        CommonController::action();
     93       
    8894    }
    8995    void DivisionController::stayNearProtect()
Note: See TracChangeset for help on using the changeset viewer.