Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 24, 2013, 12:41:13 AM (11 years ago)
Author:
jo
Message:

Making the WaypointPatrolController configurable such that it can follow/stalk/hunt an enemy without shooting at the first place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/controllers/WaypointPatrolController.h

    r9667 r9716  
    5050            inline float getAlertnessRadius() const
    5151                { return this->alertnessradius_; }
     52               
     53            inline void setAttackRadius(float distance)
     54                { this->attackradius_ = distance; }
     55            inline float getAttackRadius() const
     56                { return this->attackradius_; }
    5257
    5358        protected:
    5459            void searchEnemy();
    5560
    56             float alertnessradius_;
     61            float alertnessradius_; //!< Enemies within this radius are being followed and shot.
     62            float attackradius_;    //!< Enemies only get shot, if they are within the attackradius_.
    5763            Timer patrolTimer_;
    5864    };
Note: See TracChangeset for help on using the changeset viewer.