Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2013, 12:17:59 AM (11 years ago)
Author:
jo
Message:

Merged trunk into branch levelElias to add new features.

Location:
code/branches/levelElias
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/levelElias

  • code/branches/levelElias/src/orxonox/controllers/WaypointPatrolController.h

    r9667 r9732  
    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.