Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 26, 2015, 5:44:31 PM (9 years ago)
Author:
gania
Message:

Restructured

File:
1 edited

Legend:

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

    r10681 r10709  
    2929#ifndef _FleetController_H__
    3030#define _FleetController_H__
     31#include "controllers/FormationController.h"
    3132
    3233#include "controllers/Controller.h"
     34#include "controllers/DivisionController.h"
     35#include "controllers/LeaderController.h"
     36#include "controllers/WingmanController.h"
    3337
    3438#include "OrxonoxPrereqs.h"
    3539#include "core/class/Super.h"
    3640#include "core/CoreIncludes.h"
    37 #include "core/XMLPort.h"
    38 #include "core/command/ConsoleCommandIncludes.h"
    39 #include "core/command/Executor.h"
     41
    4042
    4143#include <vector>
     
    5153#include "worldentities/pawns/TeamBaseMatchBase.h"
    5254
    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"
    6155
    6256
     
    6458{   
    6559
    66     class _OrxonoxExport FleetController : public Controller
     60    class _OrxonoxExport FleetController : public FormationController, public Tickable
    6761    {
    6862        public:
     
    7064          virtual ~FleetController();
    7165
     66          virtual void tick(float dt); //<! Carrying out the targets set in action().
    7267
    7368          virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     
    8075          enum GameGoal {DOMINATE, MOVE, DESTROY, PROTECT};
    8176         
    82           /*void setGameGoal(GameGoal gameGoal)
    83              { this->gameGoal_ = gameGoal; }
    84           GameGoal getGameGoal() const
    85              { return this->gameGoal_; }
    8677         
    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 
    10278
    10379
     
    11086            WeakPtr<Pawn> goalProtect_;
    11187
     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().
    11295
    11396    };
Note: See TracChangeset for help on using the changeset viewer.