- Timestamp:
- Oct 26, 2015, 5:44:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/FleetController.h
r10681 r10709 29 29 #ifndef _FleetController_H__ 30 30 #define _FleetController_H__ 31 #include "controllers/FormationController.h" 31 32 32 33 #include "controllers/Controller.h" 34 #include "controllers/DivisionController.h" 35 #include "controllers/LeaderController.h" 36 #include "controllers/WingmanController.h" 33 37 34 38 #include "OrxonoxPrereqs.h" 35 39 #include "core/class/Super.h" 36 40 #include "core/CoreIncludes.h" 37 #include "core/XMLPort.h" 38 #include "core/command/ConsoleCommandIncludes.h" 39 #include "core/command/Executor.h" 41 40 42 41 43 #include <vector> … … 51 53 #include "worldentities/pawns/TeamBaseMatchBase.h" 52 54 53 #include "gametypes/TeamDeathmatch.h"54 #include "gametypes/Dynamicmatch.h"55 #include "gametypes/Mission.h"56 #include "gametypes/Gametype.h"57 58 #include "controllers/WaypointPatrolController.h"59 #include "controllers/NewHumanController.h"60 #include "controllers/DroneController.h"61 55 62 56 … … 64 58 { 65 59 66 class _OrxonoxExport FleetController : public Controller60 class _OrxonoxExport FleetController : public FormationController, public Tickable 67 61 { 68 62 public: … … 70 64 virtual ~FleetController(); 71 65 66 virtual void tick(float dt); //<! Carrying out the targets set in action(). 72 67 73 68 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); … … 80 75 enum GameGoal {DOMINATE, MOVE, DESTROY, PROTECT}; 81 76 82 /*void setGameGoal(GameGoal gameGoal)83 { this->gameGoal_ = gameGoal; }84 GameGoal getGameGoal() const85 { return this->gameGoal_; }86 77 87 void setGoalPosition(Vector3* goalPosition)88 { this->goalPosition_ = goalPosition; }89 Vector3* getGoalPosition() const90 { return this->goalPosition_; }91 92 void setGoalTarget(Pawn* goalTarget)93 { this->goalTarget_ = goalTarget; }94 Pawn* getGoalTarget() const95 { return this->goalTarget_; }96 97 void setGoalProtect(Pawn* goalProtect)98 { this->goalProtect_ = goalProtect; }99 Pawn* getGoalProtect() const100 { return this->goalProtect_; }*/101 102 78 103 79 … … 110 86 WeakPtr<Pawn> goalProtect_; 111 87 88 virtual void action(); 89 private: 90 int nTicks_; 91 bool bTicked_; 92 93 std::vector<WeakPtr<DivisionController> > divisions_; 94 //Timer actionTimer_; //<! Regularly calls action(). 112 95 113 96 };
Note: See TracChangeset
for help on using the changeset viewer.