Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 23, 2015, 7:44:20 AM (9 years ago)
Author:
gania
Message:

refactoring in process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/AI_HS15/src/orxonox/controllers/FleetController.h

    r10678 r10681  
    6767    {
    6868        public:
    69         FleetController(Context* context);
    70         virtual ~FleetController();
     69          FleetController(Context* context);
     70          virtual ~FleetController();
    7171
    7272
    73         virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     73          virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    7474
    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_; }*/
     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_; }*/
    101101
    102102
Note: See TracChangeset for help on using the changeset viewer.