- Timestamp:
- Oct 29, 2015, 11:53:45 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/LeaderController.h
r10709 r10717 30 30 #define _LeaderController_H__ 31 31 32 #include "controllers/CommonController.h" 32 33 #include "controllers/WingmanController.h" 33 34 34 35 35 36 #include "util/Math.h" 37 #include "tools/Timer.h" 38 #include "tools/interfaces/Tickable.h" 36 39 37 40 namespace orxonox 38 41 { 39 class _OrxonoxExport LeaderController : public WingmanController42 class _OrxonoxExport LeaderController : public CommonController, public Tickable 40 43 { 41 44 public: … … 43 46 LeaderController(Context* context); 44 47 virtual ~LeaderController(); 45 virtual void setWingman(WingmanController* wingman); 48 virtual bool isLeader(); 49 50 virtual bool setWingman(WingmanController* wingman); 46 51 virtual void tick(float dt); //<! Carrying out the targets set in action(). 47 52 48 53 protected: 49 54 50 55 LeaderController* findNewDivisionLeader(); 56 57 bool bIsDivisionLeader_; 51 58 52 59 virtual void action(); //<! action() is called in regular intervals managing the bot's behaviour ~ setting targets. … … 57 64 WeakPtr<Pawn> target_; 58 65 59 WingmanController* wingman_;60 66 WingmanController* myWingman_; 67 LeaderController* myDivisionLeader_; 61 68 //Timer actionTimer_; //<! Regularly calls action(). 62 69
Note: See TracChangeset
for help on using the changeset viewer.