- Timestamp:
- Oct 30, 2015, 11:07:34 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/DivisionController.h
r10722 r10725 48 48 49 49 //Using british military aircraft formations 50 enum FormationMode {VEE,FINGER4,DIAMOND, WALL}; 51 void setFormationMode(FormationMode val); 52 inline FormationMode getFormationMode() const 53 { return this->formationMode_; } 50 51 54 52 virtual bool setFollower(LeaderController* myFollower); 55 53 virtual bool setWingman(CommonController* wingman) … … 85 83 86 84 protected: 85 void setDesiredPositionOfWingman(); 86 void setDesiredPositionOfFollower(); 87 virtual void action(); //<! action() is called in regular intervals managing the bot's behaviour ~ setting targets. 87 88 88 89 //Target enemy, set by fleet controller. 89 WeakPtr<Pawn> target_; 90 bool bHasTargetPosition_; 91 Vector3 targetPosition_; 92 bool bHasTargetOrientation_; 93 Quaternion targetOrientation_; 94 FormationMode formationMode_; 90 95 91 96 92 … … 99 95 100 96 private: 97 Timer actionTimer_; //<! Regularly calls action(). 98 101 99 }; 102 100 }
Note: See TracChangeset
for help on using the changeset viewer.