- Timestamp:
- Oct 29, 2015, 8:02:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/WingmanController.h
r10717 r10719 46 46 WingmanController(Context* context); 47 47 virtual ~WingmanController(); 48 virtual bool isLeader(); 49 //virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 48 virtual bool isLeader() 49 { 50 return false; 51 }; 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 50 53 virtual void tick(float dt); //<! Carrying out the targets set in action(). 54 CommonController* findNewLeader(); 51 55 52 56 protected: 53 CommonController* findNewLeader();54 57 55 58 virtual void action(); //<! action() is called in regular intervals managing the bot's behaviour ~ setting targets. … … 65 68 //LeaderController* leader_; 66 69 67 //Timer actionTimer_; //<! Regularly calls action().70 Timer actionTimer_; //<! Regularly calls action(). 68 71 69 72 };
Note: See TracChangeset
for help on using the changeset viewer.