- 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/WingmanController.h
r10731 r10826 32 32 33 33 #include "controllers/CommonController.h" 34 #include <limits>35 34 36 35 … … 45 44 { 46 45 public: 47 WingmanController(Context* context); 48 virtual ~WingmanController(); 49 50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 51 virtual void tick(float dt); //<! Carrying out the targets set in action(). 52 CommonController* findNewLeader(); 46 //----[language demanded functions]---- 47 WingmanController(Context* context); 48 49 virtual ~WingmanController(); 50 //----[/language demanded functions]---- 51 52 //----[orxonox demanded functions]---- 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 54 55 virtual void tick(float dt); 56 //----[/orxonox demanded functions]---- 57 58 //----[own functions]---- 59 CommonController* findNewLeader(); 60 //----[/own functions]---- 53 61 54 62 protected: 55 WeakPtr<CommonController> myLeader_; 63 //----action must only be managed by this---- 64 virtual void action(); //<! action() is called in regular intervals managing the bot's behaviour. 56 65 57 virtual void action(); //<! action() is called in regular intervals managing the bot's behaviour ~ setting targets.58 59 60 61 66 private: 62 63 64 Timer actionTimer_; //<! Regularly calls action().65 67 //----private variables----- 68 WeakPtr<CommonController> myLeader_; 69 Timer actionTimer_; //<! Regularly calls action(). 70 66 71 }; 67 72 }
Note: See TracChangeset
for help on using the changeset viewer.