BWAPI
Tasks/ExploreSectorTask.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 #include "Task.h"
00004 
00005 class ExploreSectorTask :
00006         public Task
00007 {
00008 protected:
00009         MapSector* _sector;
00010 
00011         double _maxDistance;
00012 
00013 public:
00014         static void generateNecessaryTasks(Environment* env);
00015 
00016         static SectorList prioritizeSectors(Environment* env);
00017 
00018         static double evaluateAptitudeForTask(MapSector* sector, Agent* agent);
00019 
00020         ExploreSectorTask(MapSector* sector, Environment* env);
00021         virtual ~ExploreSectorTask(void);
00022 
00023         MapSector* getSector();
00024 
00025         virtual void removeAgent(Agent* agent);
00026 
00027         virtual void calculatePriority();
00028         virtual double evaluateAptitude(Agent* agent);
00029         virtual void evaluateStatus();
00030         
00031         virtual void evaluateNeededUnits();
00032 
00033         virtual bool execute(Agent* agent);
00034 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines