- 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/DivisionController.h
r10718 r10719 39 39 namespace orxonox 40 40 { 41 class _OrxonoxExport DivisionController : public LeaderController 41 class _OrxonoxExport DivisionController : public LeaderController, public Tickable 42 42 { 43 43 public: … … 45 45 virtual ~DivisionController(); 46 46 47 //virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 48 48 49 49 //Using british military aircraft formations … … 53 53 { return this->formationMode_; } 54 54 virtual bool setFollower(LeaderController* myFollower); 55 virtual bool setWingman(CommonController* wingman) 56 { 57 if (!this->myWingman_) 58 { 59 this->myWingman_ = wingman; 60 return true; 61 } 62 else 63 { 64 return false; 65 } 66 }; 67 virtual void tick(float dt); //<! Carrying out the targets set in action(). 55 68 56 69 … … 66 79 FormationMode formationMode_; 67 80 68 81 CommonController* myWingman_; 69 82 LeaderController* myFollower_; 70 83
Note: See TracChangeset
for help on using the changeset viewer.