Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 30, 2015, 4:04:16 PM (8 years ago)
Author:
gania
Message:

commented some stuff

File:
1 edited

Legend:

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

    r10888 r10898  
    122122        this->deltaHp = orxonox_cast<Pawn*> (this->getControllableEntity())->getHealth() - this->previousHp;
    123123        this->previousHp = orxonox_cast<Pawn*> (this->getControllableEntity())->getHealth();
    124         if (this->actionCounter_ % 2 == 0)
    125             this->startAttackingEnemiesThatAreClose();
     124        // if (this->actionCounter_ % 2 == 0)
    126125        //No action -> pop one from stack
    127126        if (this->action_ == Action::NONE || this->bTakenOver_)
     
    133132            //     this->parsedActionpoints_.push_back(point);
    134133            // }
     134            this->startAttackingEnemiesThatAreClose();
     135
    135136            if (this->parsedActionpoints_.empty() && this->loopActionpoints_.empty())
    136137            {
     
    209210        else if (this->action_ == Action::FLY)
    210211        {
     212            this->startAttackingEnemiesThatAreClose();           
    211213            if (this->squaredDistanceToTarget() <= this->squaredaccuracy_)
    212214            {
     
    217219        else if (this->action_ == Action::PROTECT)
    218220        {
     221            this->startAttackingEnemiesThatAreClose();           
    219222            if (!this->getProtect())
    220223            {
     
    226229        else if (this->action_ == Action::ATTACK)
    227230        {   
     231            this->startAttackingEnemiesThatAreClose();           
    228232            if (!this->hasTarget())
    229233            {
Note: See TracChangeset for help on using the changeset viewer.