29 #ifndef _ActionpointController_H__ 30 #define _ActionpointController_H__ 88 virtual void tick(
float dt)
override;
167 WorldEntity* getActionpoint(
unsigned int index)
const;
169 { this->bDefaultFightAll_ = value; }
171 {
return this->bDefaultFightAll_; }
173 { this->bDefaultPatrol_ = value; }
175 {
return this->bDefaultPatrol_; }
178 virtual void stayNearProtect();
179 virtual void action();
180 virtual void takeActionpoints (
const std::vector<Point>& vector,
const std::vector<Point>& loop,
bool b);
182 virtual Action getAction ();
185 void setAction (
Action action);
187 void setAction (
Action action,
const Vector3& target);
188 void setAction (
Action action,
const Vector3& target,
const Quaternion& orient );
201 void startAttackingEnemiesThatAreClose();
223 void fillLoopReversed();
224 void moveBackToTop();
226 void setClosestTarget();
227 Pawn* closestTarget();
236 void executeActionpoint();
244 void nextActionpoint();
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
std::vector< WeakPtr< WorldEntity > > actionpoints_
Definition: ActionpointController.h:209
bool bEndLoop_
Definition: ActionpointController.h:215
Definition: ActionpointController.h:68
bool bDefaultPatrol_
Definition: ActionpointController.h:250
bool bDefaultFightAll_
Definition: ActionpointController.h:247
bool bLoop_
Definition: ActionpointController.h:214
std::vector< Point > loopActionpoints_
Definition: ActionpointController.h:212
WeakPtr< ActionpointController > myWingman_
Definition: ActionpointController.h:202
Declaration of the Tickable interface.
bool getDefaultPatrol()
Definition: ActionpointController.h:174
bool bInLoop_
Definition: ActionpointController.h:213
void setDefaultFightAll(bool value)
Definition: ActionpointController.h:168
virtual bool setWingman(ActionpointController *wingman)
Definition: ActionpointController.h:190
::std::string string
Definition: gtest-port.h:756
WeakPtr< ActionpointController > myDivisionLeader_
Definition: ActionpointController.h:204
Action
ActionpointController is a state machine with states: 1) NONE 2) FLY: fly towards a point 3) FIGHT: f...
Definition: ActionpointController.h:63
bool bPatrolling_
Definition: ActionpointController.h:249
std::string targetName_
Definition: ActionpointController.h:208
unsigned int ticks_
Definition: ActionpointController.h:251
bool bTakenOver_
Definition: ActionpointController.h:216
bool inLoop
Definition: ActionpointController.h:72
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
xmlelement
Definition: Super.h:519
WeakPtr< ActionpointController > myFollower_
Definition: ActionpointController.h:203
std::vector< Point > parsedActionpoints_
Definition: ActionpointController.h:211
Vector3 position
Definition: ActionpointController.h:71
Declaration of the Timer class, used to call functions after a given time-interval.
Action action
Definition: ActionpointController.h:69
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
bool getDefaultFightAll()
Definition: ActionpointController.h:170
Mode
Definition: CorePrereqs.h:102
FightingController stores all the fighting methods and member variables of AI.
Definition: FightingController.h:45
virtual bool setFollower(ActionpointController *myFollower)
Definition: ActionpointController.h:194
std::string name
Definition: ActionpointController.h:70
Definition: ActionpointController.h:75
virtual bool hasWingman()
Definition: ActionpointController.h:192
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
WeakPtr< ControllableEntity > protect_
Definition: ActionpointController.h:221
void setDefaultPatrol(bool value)
Definition: ActionpointController.h:172
std::string protectName_
Definition: ActionpointController.h:207
Action action_
Definition: ActionpointController.h:206
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
float squaredaccuracy_
Definition: ActionpointController.h:210
The ControllableEntity is derived from the orxonox::MobileEntity.
Definition: ControllableEntity.h:48
virtual bool hasFollower()
Definition: ActionpointController.h:196