29 #ifndef _FormationController_h__ 30 #define _FormationController_h__ 55 static void formationflight(
const bool form);
56 static void masteraction(
const int action);
57 static void followme();
58 static void passivebehaviour(
const bool passive);
59 static void formationsize(
const int size);
63 { this->formationFlight_ = formation; }
65 {
return this->formationFlight_; }
68 { this->maxFormationSize_ = size; }
70 {
return this->maxFormationSize_; }
74 { this->passive_ = passive; }
76 {
return this->passive_; }
93 {
return this->formationMode_; }
95 virtual void hit(
Pawn* originator, btManifoldPoint& contactpoint,
float damage)
override;
101 virtual void changedControllableEntity()
override;
121 void moveToPosition(
const Vector3& target);
122 void moveToTargetPosition();
123 void absoluteMoveToPosition(
const Vector3& target);
124 void copyOrientation(
const Quaternion& orient);
125 void copyTargetOrientation();
127 void removeFromFormation();
128 void unregisterSlave();
129 void searchNewMaster();
130 void commandSlaves();
131 void takeLeadOfFormation();
132 void loseMasterState();
133 void setNewMasterWithinFormation();
136 void forceFreeSlaves();
140 void masterAttacked(
Pawn* originator);
142 void specificMasterActionHold();
147 void followInit(
Pawn* pawn,
const bool always =
false,
const int secondsToFollow = 100);
148 void followRandomHumanInit();
151 void setTargetPosition(
const Vector3& target);
152 void searchRandomTargetPosition();
154 void setTargetOrientation(
const Quaternion& orient);
155 void setTargetOrientation(
Pawn* target);
162 void setTarget(
Pawn* target);
164 void searchNewTarget();
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
xmlelement
Definition: Super.h:519
Declaration and implementation of several math-functions, typedefs of some Ogre::Math classes to the ...
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
Definition: Gametype.h:63
Shared library macros, enums, constants and forward declarations for the orxonox library ...
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
Definition: Controller.h:38
Definition of all super-function related macros, used to call functions of the base class...
The ControllableEntity is derived from the orxonox::MobileEntity.
Definition: ControllableEntity.h:48