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