- Timestamp:
- Nov 22, 2015, 5:06:38 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/DivisionController.h
r10731 r10826 42 42 { 43 43 public: 44 //----[language demanded functions]---- 45 DivisionController(Context* context); 44 46 45 DivisionController(Context* context);46 virtual ~DivisionController();47 virtual ~DivisionController(); 48 //----[/language demanded functions]---- 47 49 48 virtual void tick(float dt); //<! Carrying out the targets set in action(). 50 //----[orxonox demanded functions]---- 51 virtual void tick(float dt); 49 52 50 51 virtual bool setFollower(LeaderController* myFollower); 52 virtual bool setWingman(CommonController* cwingman); 53 virtual bool hasWingman(); 54 virtual bool hasFollower(); 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 54 //----[orxonox demanded functions]---- 55 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 56 //----[own functions]---- 57 virtual bool setFollower(LeaderController* myFollower); 58 virtual bool setWingman(CommonController* cwingman); 59 virtual bool hasWingman(); 60 virtual bool hasFollower(); 61 62 void setTargetPositionOfWingman(); 63 void setTargetPositionOfFollower(); 64 //----[/own functions]---- 57 65 58 66 protected: 59 60 void setTargetPositionOfWingman(); 61 void setTargetPositionOfFollower(); 62 63 virtual void action(); //<! action() is called in regular intervals managing the bot's behaviour ~ setting targets. 67 //----action must only be managed by this---- 68 virtual void action(); //<! action() is called in regular intervals managing the bot's behaviour. 64 69 65 70 private: 66 71 //----private variables----- 67 72 Timer actionTimer_; //<! Regularly calls action(). 68 73
Note: See TracChangeset
for help on using the changeset viewer.