- Timestamp:
- Oct 23, 2015, 7:44:20 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/FleetController.h
r10678 r10681 67 67 { 68 68 public: 69 FleetController(Context* context);70 virtual ~FleetController();69 FleetController(Context* context); 70 virtual ~FleetController(); 71 71 72 72 73 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);73 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 74 74 75 //gameGoal_ is to be set in XML76 //DOMINATE is default, makes AI want to be the only team alive77 //MOVE makes a fleet move to a set absolute position (set in variable goalPosition_)78 //DESTROY makes a fleet destroy a target (set in variable goalTarget_)79 //PROTECT makes a fleet protect a target (set in variable goalProtect_)80 enum GameGoal {DOMINATE, MOVE, DESTROY, PROTECT};81 82 /*void setGameGoal(GameGoal gameGoal)83 { this->gameGoal_ = gameGoal; }84 GameGoal getGameGoal() const85 { return this->gameGoal_; }86 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_; }*/75 //gameGoal_ is to be set in XML 76 //DOMINATE is default, makes AI want to be the only team alive 77 //MOVE makes a fleet move to a set absolute position (set in variable goalPosition_) 78 //DESTROY makes a fleet destroy a target (set in variable goalTarget_) 79 //PROTECT makes a fleet protect a target (set in variable goalProtect_) 80 enum GameGoal {DOMINATE, MOVE, DESTROY, PROTECT}; 81 82 /*void setGameGoal(GameGoal gameGoal) 83 { this->gameGoal_ = gameGoal; } 84 GameGoal getGameGoal() const 85 { return this->gameGoal_; } 86 87 void setGoalPosition(Vector3* goalPosition) 88 { this->goalPosition_ = goalPosition; } 89 Vector3* getGoalPosition() const 90 { return this->goalPosition_; } 91 92 void setGoalTarget(Pawn* goalTarget) 93 { this->goalTarget_ = goalTarget; } 94 Pawn* getGoalTarget() const 95 { return this->goalTarget_; } 96 97 void setGoalProtect(Pawn* goalProtect) 98 { this->goalProtect_ = goalProtect; } 99 Pawn* getGoalProtect() const 100 { return this->goalProtect_; }*/ 101 101 102 102
Note: See TracChangeset
for help on using the changeset viewer.