29 #ifndef _ArtificialController_H__ 30 #define _ArtificialController_H__ 46 void abandonTarget(
Pawn* target);
48 virtual void changedControllableEntity()
override;
50 virtual void doFire();
51 void setBotLevel(
float level=1.0f);
53 {
return this->botlevel_; }
54 static void setAllBotLevel(
float level);
60 { this->squaredaccuracy_ = accuracy*accuracy; }
62 {
return sqrt(this->squaredaccuracy_); }
63 void updatePointsOfInterest(
std::string name,
float distance);
64 void manageWaypoints();
72 bool isCloseAtTarget(
float distance)
const;
73 bool isLookingAtTarget(
float angle)
const;
78 void setPreviousMode();
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
std::vector< WeakPtr< WorldEntity > > waypoints_
Definition: ArtificialController.h:91
::std::string string
Definition: gtest-port.h:756
float getBotLevel() const
Definition: ArtificialController.h:52
WorldEntity * defaultWaypoint_
Definition: ArtificialController.h:94
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
Definition: ArtificialController.h:76
xmlelement
Definition: Super.h:519
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
Shared library macros, enums, constants and forward declarations for the orxonox library ...
float botlevel_
Definition: ArtificialController.h:75
float squaredaccuracy_
Definition: ArtificialController.h:93
float timeout_
Definition: ArtificialController.h:84
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
Mode
Definition: ArtificialController.h:76
std::map< std::string, int > weaponModes_
Definition: ArtificialController.h:82
float getAccuracy() const
Definition: ArtificialController.h:61
void setAccuracy(float accuracy)
Definition: ArtificialController.h:59
size_t currentWaypoint_
Definition: ArtificialController.h:92
bool bSetupWorked
Definition: ArtificialController.h:86
Definition: ArtificialController.h:38
Mode mode_
Definition: ArtificialController.h:77