29 #ifndef _WaypointPatrolController_H__ 30 #define _WaypointPatrolController_H__ 46 virtual void tick(
float dt)
override;
49 { this->alertnessradius_ = radius; }
51 {
return this->alertnessradius_; }
54 { this->attackradius_ = distance; }
56 {
return this->attackradius_; }
float attackradius_
Enemies only get shot, if they are within the attackradius_.
Definition: WaypointPatrolController.h:62
virtual ~WaypointPatrolController()
Definition: WaypointPatrolController.h:43
Timer patrolTimer_
Definition: WaypointPatrolController.h:63
Definition: WaypointController.h:40
float getAttackRadius() const
Definition: WaypointPatrolController.h:55
xmlelement
Definition: Super.h:519
Declaration of the Timer class, used to call functions after a given time-interval.
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
float getAlertnessRadius() const
Definition: WaypointPatrolController.h:50
Mode
Definition: CorePrereqs.h:102
Definition: WaypointPatrolController.h:39
Shared library macros, enums, constants and forward declarations for the orxonox library ...
void setAttackRadius(float distance)
Definition: WaypointPatrolController.h:53
void setAlertnessRadius(float radius)
Definition: WaypointPatrolController.h:48
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
float alertnessradius_
Enemies within this radius are being followed and shot.
Definition: WaypointPatrolController.h:61