Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 28, 2015, 10:30:56 PM (8 years ago)
Author:
gania
Message:

added other weapons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/ActionpointController.h

    r10877 r10885  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Gani Aliguzhinov
    2424 *   Co-authors:
    2525 *      ...
     
    5555    {
    5656        public:
    57             //----[language demanded functions]----           
    58                 ActionpointController(Context* context);
    59                 virtual ~ActionpointController();
    60             //----[language demanded functions]----           
    61                 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);         
     57            ActionpointController(Context* context);
     58            virtual ~ActionpointController();
     59            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);         
    6260               
    63             virtual void tick(float dt);
     61            virtual void tick(float dt);
     62
    6463            void addActionpoint(WorldEntity* waypoint);
    6564            WorldEntity* getActionpoint(unsigned int index) const;           
    6665            virtual void stayNearProtect();
    6766            virtual void action(); //<! action() is called in regular intervals managing the bot's behaviour.
    68             virtual void takeActionpoints (std::vector<Point > vector, std::vector<Point > loop, bool b);
    69             Action::Value getAction ();
    70             std::string getActionName();
     67            virtual void takeActionpoints (const std::vector<Point>& vector, const std::vector<Point>& loop, bool b);
     68
     69            virtual Action::Value getAction ();
     70            virtual std::string getActionName();
    7171
    7272            void setAction (Action::Value action);
     
    8383            virtual bool hasFollower()
    8484                { return true; }
    85 
     85               
    8686        protected:
    87             void startAttackingEnemiesThatAreClose();
    88 
     87                void startAttackingEnemiesThatAreClose();
     88                WeakPtr<ActionpointController> myWingman_;
     89                WeakPtr<ActionpointController> myFollower_;
     90                WeakPtr<ActionpointController> myDivisionLeader_;
    8991            //----[Actionpoint information]----
    9092                Action::Value action_;
     
    103105                ControllableEntity* getProtect ();
    104106                WeakPtr<ControllableEntity> protect_;     
    105 
     107                void fillLoop();
     108                void fillLoopReversed();
     109                void moveBackToTop();
    106110                void setClosestTarget();
    107111                Pawn* closestTarget();
     
    109113                void executeActionpoint();
    110114                void nextActionpoint();
    111                 void fillLoop();
    112                 void fillLoopReversed();
    113                 void moveBackToTop();
     115                void pushAction(Point& p);
     116                void popAction();
    114117            //----[Actionpoint methods]----         
    115118                bool bFirstTick_;
Note: See TracChangeset for help on using the changeset viewer.