Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 24, 2015, 11:54:47 AM (9 years ago)
Author:
gania
Message:

I hope that you don't code today, that version is not compilable just yet

File:
1 edited

Legend:

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

    r10843 r10847  
    3939#include "tools/interfaces/Tickable.h"
    4040#include <limits>
    41 
     41#include "worldentities/Actionpoint.h"
    4242
    4343namespace orxonox
     
    6363        enum Value
    6464        {
    65             FLY, FIGHT, PROTECT
     65            NONE, FLY, FIGHT, PROTECT, FIGHTALL, ATTACK
    6666        };
    6767    }
     
    111111                    ControllableEntity* getProtect ();
    112112                //----[/Protect data]----
     113                //----[Actionpoint data]----
     114                    void addActionpoint(WorldEntity* waypoint);
     115                    WorldEntity* getActionpoint(unsigned int index) const;
     116                //----[/Actionpoint data]----
    113117            //----[/XML data]----
    114118
     
    134138                static bool sameTeam (ControllableEntity* entity1, ControllableEntity* entity2, Gametype* gt);
    135139                static bool isLooking( ControllableEntity* entityThatLooks, ControllableEntity* entityBeingLookedAt, float angle ) ;
     140                static std::string getName( ControllableEntity* entity ) ;
    136141
    137142                float squaredDistanceToTarget() const;
     
    166171                void doFire();
    167172                void setClosestTarget();
     173                ControllableEntity* closestTarget();
    168174
    169175                bool bShooting_;
     
    177183                Quaternion targetOrientation_;
    178184               
    179                 Vector3 destination_;
    180                 bool bHasDestination;
     185               
    181186            //----[/where-to-fly information]----
    182187            //----[protect information]----
     
    185190            //----[who-to-kill information]----
    186191                WeakPtr<ControllableEntity> target_;
    187                 WeakPtr<ControllableEntity> enemy_;
    188 
     192               
    189193                bool bHasPositionOfTarget_;
    190194                Vector3 positionOfTarget_;
     
    193197            //----[/who-to-kill information]----
    194198
     199            //----[Actionpoint information]----
     200                std::vector<WeakPtr<WorldEntity> > actionpoints_;
     201                float squaredaccuracy_;
     202                <tuple<Action::Value ,std::string ,Vector3 > > currentActionpoint_;
     203                std::vector<tuple<Action::Value ,std::string ,Vector3 > > parsedActionpoints_;
     204            //----[/Actionpoint information]----
    195205            //----["Private" variables]----
    196206                FormationMode::Value formationMode_;
     
    198208                std::string protectName_;
    199209                Action::Value action_;
     210                int attackRange_;
     211               
    200212            //----[/"Private" variables]----               
    201213    };
Note: See TracChangeset for help on using the changeset viewer.