29 #ifndef _FightingController_H__ 30 #define _FightingController_H__ 52 float squaredDistanceToTarget()
const;
53 bool isLookingAtTarget(
float angle)
const;
54 bool hasTarget()
const;
56 {
return this->target_; }
58 virtual void maneuver();
65 void setPositionOfTarget(
const Vector3& target);
66 void setOrientationOfTarget(
const Quaternion& orient);
67 void stopLookingAtTarget();
68 void startLookingAtTarget();
69 void lookAtTarget(
float dt);
71 void dodge(
const Vector3& thisPosition,
float diffLength, Vector3& diffUnit);
76 void setClosestTarget();
82 Pawn* closestTarget()
const;
Quaternion orientationOfTarget_
Definition: FightingController.h:81
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
bool bFiredRocket_
Definition: FightingController.h:93
ControllableEntity * getTarget() const
Definition: FightingController.h:55
float previousHp
Definition: FightingController.h:88
::std::string string
Definition: gtest-port.h:756
float deltaHp
Definition: FightingController.h:87
bool bHasPositionOfTarget_
Definition: FightingController.h:78
bool bDodge_
Definition: FightingController.h:84
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
int rocketsLeft_
Definition: FightingController.h:91
std::map< std::string, int > weaponModes_
Definition: FightingController.h:94
bool bHasOrientationOfTarget_
Definition: FightingController.h:80
int attackRange_
Definition: FightingController.h:85
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
WeakPtr< ControllableEntity > target_
Definition: FightingController.h:75
bool bSetupWorked
Definition: FightingController.h:97
FightingController stores all the fighting methods and member variables of AI.
Definition: FightingController.h:45
Definition: FlyingController.h:48
Vector3 positionOfTarget_
Definition: FightingController.h:79
bool bShooting_
Definition: FightingController.h:60
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
bool bLookAtTarget_
Definition: FightingController.h:86
bool bStartedDodging_
Definition: FightingController.h:89
int timeout_
Definition: FightingController.h:92
bool bKeepFormation_
Definition: FightingController.h:57
The ControllableEntity is derived from the orxonox::MobileEntity.
Definition: ControllableEntity.h:48