- Timestamp:
- Nov 2, 2015, 4:48:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/CommonController.h
r10737 r10759 33 33 #include "controllers/Controller.h" 34 34 #include "worldentities/ControllableEntity.h" 35 /*#include "worldentities/pawns/Pawn.h"36 */ 35 #include "worldentities/pawns/Pawn.h" 36 37 37 38 38 namespace orxonox 39 39 { 40 41 namespace FormationMode 42 { 43 enum Value 44 { 45 VEE, FINGER4, DIAMOND, WALL 46 }; 47 } 48 namespace Rank 49 { 50 enum Value 51 { 52 NONE, SECTIONLEADER, DIVISIONLEADER, WINGMAN 53 }; 54 55 } 56 40 57 class _OrxonoxExport CommonController : public Controller 41 58 { … … 50 67 51 68 52 enum FormationMode { VEE, FINGER4, DIAMOND, WALL }; 53 virtual void setFormationMode(FormationMode val) 69 70 71 virtual void setFormationMode(FormationMode::Value val) 54 72 { this->formationMode_ = val; } 55 inline FormationMode getFormationMode() const73 inline FormationMode::Value getFormationMode() const 56 74 { return this->formationMode_; } 75 virtual void setFormationModeXML(std::string val); 76 virtual std::string getFormationModeXML(); 57 77 58 enum Rank { NONE, SECTIONLEADER, DIVISIONLEADER, WINGMAN }; 59 virtual void setRank(Rank val) 78 virtual void setRank(Rank::Value val) 60 79 { this->rank_ = val; } 61 inline Rank getRank() const80 inline Rank::Value getRank() const 62 81 { return this->rank_; } 63 82 83 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 64 84 65 85 … … 68 88 virtual bool hasWingman(); 69 89 90 void setTarget(ControllableEntity* target); 70 91 71 92 void setTargetOrientation(const Quaternion& orient); … … 87 108 void copyTargetOrientation(); 88 109 89 /*bool isCloseAtTarget(float distance) const;110 bool isCloseAtTarget(float distance) const; 90 111 void doFire(); 91 112 void aimAtTarget(); … … 99 120 bool bSetupWorked; //<! If false, setupWeapons() is called. 100 121 int getFiremode(std::string name); 101 */ 122 102 123 103 124 bool bHasTargetPosition_; … … 111 132 112 133 113 FormationMode formationMode_;114 Rank rank_;134 FormationMode::Value formationMode_; 135 Rank::Value rank_; 115 136 116 137
Note: See TracChangeset
for help on using the changeset viewer.