Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10651 for code


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

Old AIController default behaviour is commented out

Location:
code/branches/AI_HS15/src/orxonox/controllers
Files:
2 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
  • code/branches/AI_HS15/src/orxonox/controllers/ArtificialController.h

    r9667 r10651  
    7474
    7575            float botlevel_; //<! Makes the level of a bot configurable.
     76            //botLevel_ is never used in XML (so far), is it redundant?
    7677            enum Mode {DEFAULT, ROCKET, DEFENCE, MOVING};//TODO; implement DEFENCE, MOVING modes
    7778            Mode mode_; //TODO: replace single value with stack-like implementation: std::vector<Mode> mode_;
Note: See TracChangeset for help on using the changeset viewer.