- Timestamp:
- Oct 30, 2015, 11:07:34 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/CommonController.h
r10722 r10725 39 39 { 40 40 public: 41 41 enum FormationMode {VEE,FINGER4,DIAMOND, WALL}; 42 virtual void setFormationMode(FormationMode val) 43 { this->formationMode_ = val; } 44 inline FormationMode getFormationMode() const 45 { return this->formationMode_; } 46 42 47 CommonController(Context* context); 43 48 virtual ~CommonController(); … … 45 50 virtual bool setWingman(CommonController* wingman); 46 51 virtual bool hasWingman(); 47 CommonController* myWingman_;52 Vector3* desiredRelativePosition_; 48 53 49 CommonController* myLeader_;50 54 51 55 protected: 56 void moveToPosition(const Vector3& target); 57 virtual void positionReached() {} 58 59 /* void moveToTargetPosition(); 60 void absoluteMoveToPosition(const Vector3& target); 61 void copyOrientation(const Quaternion& orient); 62 void copyTargetOrientation(); 63 64 void spin(); 65 void turn180(); 66 void follow(); 67 void setTargetPosition(const Vector3& target); 68 69 void setTargetOrientation(const Quaternion& orient); 70 void setTargetOrientation(Pawn* target); 71 72 73 74 void setTarget(Pawn* target); 75 76 void searchNewTarget(); 77 void forgetTarget(); 78 79 void targetDied(); 80 */ 81 bool bHasTargetPosition_; 82 Vector3 targetPosition_; 83 bool bHasTargetOrientation_; 84 Quaternion targetOrientation_; 85 86 WeakPtr<ControllableEntity> target_; 87 bool bShooting_; 88 89 FormationMode formationMode_; 90 91 52 92 53 93 //void defaultBehaviour(float maxrand); //<! Helper function for code reusage. Some concrete commands for a bot.
Note: See TracChangeset
for help on using the changeset viewer.