- Timestamp:
- Oct 29, 2015, 11:53:45 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/DivisionController.h
r10709 r10717 33 33 34 34 35 #include "util/Math.h" 36 #include "tools/Timer.h" 37 #include "tools/interfaces/Tickable.h" 35 38 36 39 namespace orxonox … … 49 52 inline FormationMode getFormationMode() const 50 53 { return this->formationMode_; } 51 virtual void setLeader(LeaderController* leader);54 virtual bool setFollower(LeaderController* myFollower); 52 55 53 56 … … 63 66 FormationMode formationMode_; 64 67 65 /*void setTargetPosition(const Vector3& target); 66 void searchRandomTargetPosition(); 67 68 void setTargetOrientation(const Quaternion& orient); 69 void setTargetOrientation(Pawn* target); 70 71 virtual void positionReached() {} 72 73 74 75 void setTarget(Pawn* target); 76 77 void searchNewTarget(); 78 void forgetTarget(); 79 80 void targetDied(); 81 bool bShooting_; 82 void aimAtTarget(); 83 84 bool isCloseAtTarget(float distance) const; 85 bool isLookingAtTarget(float angle) const; 86 87 //Has nothing to do with desiredRelativePosition_, 88 //is set by fleet controller. 89 Vector3* desiredAbsolutePosition_; 90 91 enum Maneuver {NONE, SPIN, TURN180}; 92 Maneuver maneuver_; 93 94 void moveToPosition(const Vector3& target); 95 void moveToTargetPosition(); 96 void absoluteMoveToPosition(const Vector3& target); 97 void copyOrientation(const Quaternion& orient); 98 void copyTargetOrientation(); 99 100 void turn180Init(); 101 void spinInit(); 102 void spin(); 103 void turn180();*/ 104 105 LeaderController* leader_; 68 69 LeaderController* myFollower_; 106 70 107 71
Note: See TracChangeset
for help on using the changeset viewer.