- Timestamp:
- Nov 22, 2015, 5:06:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/CommonController.h
r10805 r10826 34 34 #include "worldentities/ControllableEntity.h" 35 35 #include "worldentities/pawns/Pawn.h" 36 #include "core/ClassTreeMask.h"36 #include <limits> 37 37 38 38 … … 44 44 enum Value 45 45 { 46 VEE,FINGER4, DIAMOND, WALL46 FINGER4, DIAMOND, WALL 47 47 }; 48 48 } … … 55 55 56 56 } 57 //none for a formation flight without attacking, neutral when opponent and this have no58 //advantage over each other, offensive when this spotted opponent first,59 //defensive otherwise60 namespace ManeuverType61 {62 enum Value63 {64 NONE, NEUTRAL, OFFENSIVE, DEFENCIVE65 };66 67 }68 57 namespace Action 69 58 { … … 73 62 }; 74 63 } 75 //none for a formation flight 76 namespace Maneuver 77 { 78 enum Value 79 { 80 NONE, GUNSD, SCISSORS, COMBATSPREAD, DEFENSIVESPLIT, BREAK, BARRELROLL, SWOOP, IMMELMANN, 81 WINGOVER, LOWYOYO, HIGHYOYO, LAGDISPLACEMENTROLL 82 }; 83 } 84 64 85 65 86 66 class _OrxonoxExport CommonController : public Controller … … 118 98 virtual bool setWingman(CommonController* wingman); 119 99 virtual bool hasWingman(); 120 100 static bool sameTeam (ControllableEntity* entity1, ControllableEntity* entity2); 121 101 void setTarget(ControllableEntity* target); 122 102 bool hasTarget(); … … 147 127 void copyTargetOrientation(float dt); 148 128 129 static float distance(ControllableEntity* entity1, ControllableEntity* entity2); 149 130 float squaredDistanceToTarget() const; 150 131 void doFire(); … … 202 183 FormationMode::Value formationMode_; 203 184 Rank::Value rank_; 204 ManeuverType::Value maneuverType_; 205 Maneuver::Value maneuver_; 206 207 bool executingManeuver_; 185 208 186 bool executingMoveToPoint_; 209 187
Note: See TracChangeset
for help on using the changeset viewer.