Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2015, 12:07:22 PM (8 years ago)
Author:
gania
Message:

Fixed some bugs, only DivisionController works for now

File:
1 edited

Legend:

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

    r10851 r10854  
    4141#include <algorithm>
    4242#include "worldentities/Actionpoint.h"
     43#include "worldentities/pawns/SpaceShip.h"
    4344
    4445namespace orxonox
     
    133134            //----[/Helper methods]----
    134135
    135              //----[Actionpoint information]----
    136 
    137                 std::vector<WeakPtr<WorldEntity> > actionpoints_;
    138                 float squaredaccuracy_;
    139                 std::vector<Point > parsedActionpoints_;
    140 
    141             //----[/Actionpoint information]----
    142                 //----[Actionpoint methods]----
    143                 void executeActionpoint();
    144                 void nextActionpoint();
    145             //----[Actionpoint methods]----
     136             
     137                virtual void stayNearProtect();
     138                virtual void action(); //<! action() is called in regular intervals managing the bot's behaviour.
     139           
    146140        protected:
    147141            //----[Flying methods]----
     
    180174                void setClosestTarget();
    181175                Pawn* closestTarget();
    182                 bool startAttackingEnemiesThatAreClose();
     176                void startAttackingEnemiesThatAreClose();
    183177            //----[/Fighting methods]----           
    184178           
     
    203197            //----[/who-to-kill information]----
    204198
    205            
     199            //----[Actionpoint information]----
     200
     201                std::vector<WeakPtr<WorldEntity> > actionpoints_;
     202                float squaredaccuracy_;
     203                std::vector<Point > parsedActionpoints_;
     204
     205            //----[/Actionpoint information]----
     206            //----[Actionpoint methods]----
     207                void executeActionpoint();
     208                void nextActionpoint();
     209            //----[Actionpoint methods]----
    206210            //----["Private" variables]----
    207211                FormationMode::Value formationMode_;
Note: See TracChangeset for help on using the changeset viewer.