- Timestamp:
- Oct 29, 2015, 11:53:45 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/WingmanController.h
r10709 r10717 31 31 32 32 33 #include "controllers/Co ntroller.h"33 #include "controllers/CommonController.h" 34 34 35 35 36 #include "OrxonoxPrereqs.h"37 #include "core/class/Super.h"38 #include "core/CoreIncludes.h"39 #include "core/XMLPort.h"40 #include "core/command/ConsoleCommandIncludes.h"41 #include "core/command/Executor.h"42 43 #include <vector>44 36 #include "util/Math.h" 45 #include <climits>46 47 37 #include "tools/Timer.h" 48 38 #include "tools/interfaces/Tickable.h" 49 50 #include "worldentities/ControllableEntity.h"51 #include "worldentities/pawns/SpaceShip.h"52 #include "worldentities/pawns/Pawn.h"53 #include "worldentities/pawns/TeamBaseMatchBase.h"54 55 #include "gametypes/TeamDeathmatch.h"56 #include "gametypes/Dynamicmatch.h"57 #include "gametypes/Mission.h"58 #include "gametypes/Gametype.h"59 60 39 61 40 62 41 namespace orxonox 63 42 { 64 class _OrxonoxExport WingmanController : public Co ntroller, public Tickable43 class _OrxonoxExport WingmanController : public CommonController, public Tickable 65 44 { 66 45 public: 67 46 WingmanController(Context* context); 68 47 virtual ~WingmanController(); 69 //virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 48 virtual bool isLeader(); 49 //virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 70 50 virtual void tick(float dt); //<! Carrying out the targets set in action(). 71 51 72 52 protected: 53 CommonController* findNewLeader(); 54 73 55 virtual void action(); //<! action() is called in regular intervals managing the bot's behaviour ~ setting targets. 74 56 //void defaultBehaviour(float maxrand); //<! Helper function for code reusage. Some concrete commands for a bot. … … 80 62 81 63 WeakPtr<Pawn> target_; 82 64 CommonController* myLeader_; 83 65 //LeaderController* leader_; 84 66
Note: See TracChangeset
for help on using the changeset viewer.