Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2012, 9:06:02 AM (12 years ago)
Author:
landauf
Message:

I think this implementation of the hit() function rather belongs to FormationController than to HumanController

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/controllers/HumanController.cc

    r9016 r9256  
    8585    HumanController::~HumanController()
    8686    {
    87         if (HumanController::localController_s) 
     87        if (HumanController::localController_s)
    8888        {
    8989            HumanController::localController_s->removeFromFormation();
     
    197197            HumanController::localController_s->keepBoosting();
    198198    }
    199    
     199
    200200    /**
    201201    @brief
     
    302302                orxout(message) <<"FormationFlight enabled "<< endl;
    303303            }
    304            
     304
    305305        }
    306306
     
    332332    }
    333333
    334 
    335     //used, when slaves are in DEFEND mode.
    336     void HumanController::hit(Pawn* originator, btManifoldPoint& contactpoint, float damage)
    337     {
    338         if (!this->formationFlight_ || this->state_!=MASTER || this->formationMode_!=DEFEND) return;
    339             this->masterAttacked(originator);
    340     }
    341 
    342334    void HumanController::addBots(unsigned int amount)
    343335    {
Note: See TracChangeset for help on using the changeset viewer.