BWAPI
BTHAI/SCProjects/BTHAIModule/Source/StructureAgent.h
Go to the documentation of this file.
00001 #ifndef __STRUCTUREAGENT_H__
00002 #define __STRUCTUREAGENT_H__
00003 
00004 #include "BaseAgent.h"
00005 using namespace BWAPI;
00006 using namespace std;
00007 
00015 class StructureAgent : public BaseAgent {
00016 
00017 private:
00018         
00019 protected:
00020         bool repairing;
00021         vector<UpgradeType> upgradeOrder;
00022         vector<TechType> researchOrder;
00023 
00024         bool canBuildUnit(UnitType type);
00025         bool canEvolveUnit(UnitType type);
00026 
00027         TilePosition getNextScanLocation();
00028         vector<TilePosition> hasScanned;
00029 
00030 public:
00031         StructureAgent();
00032         StructureAgent(Unit* mUnit);
00033 
00035         virtual void computeActions();
00036 
00038         bool canMorphInto(UnitType type);
00039 
00041         void sendWorkers();
00042 
00044         string getTypeName();
00045 
00047         virtual void printInfo();
00048 };
00049 
00050 #endif
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines