Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 13, 2015, 6:11:01 PM (9 years ago)
Author:
gania
Message:

Old AIController default behaviour is commented out

File:
1 edited

Legend:

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

    r9667 r10651  
    4444    {
    4545        RegisterObject(AIController);
    46 
    4746        this->actionTimer_.setTimer(ACTION_INTERVAL, true, createExecutor(createFunctor(&AIController::action, this)));
    4847    }
     
    147146    void AIController::tick(float dt)
    148147    {
     148
    149149        if (!this->isActive())
    150150            return;
     
    256256//**********************************************NEW
    257257    void AIController::defaultBehaviour(float maxrand)
    258     {       float random;
     258    {     
     259             if (!this->target_)
     260                this->searchNewTarget();
     261             if (!(this->passive_) && (this->target_ && !this->bShooting_))
     262                    this->bShooting_ = true;
     263            /*
     264            float random;
    259265            // search enemy
    260266            random = rnd(maxrand);
     
    313319            if (random < botlevel_*50 )
    314320                this->boostControl();
    315 
     321            */
     322
     323           
    316324            // update Checkpoints
    317325            /*random = rnd(maxrand);
     
    321329            if (this->waypoints_.size() == 0 )
    322330                this->manageWaypoints();
     331
     332           
    323333    }
    324334
Note: See TracChangeset for help on using the changeset viewer.