BWAPI
BTHAI/SCProjects/BTHAIModule/Source/UpgradesPlanner.h
Go to the documentation of this file.
00001 #ifndef __UPGRADESPLANNER_H__
00002 #define __UPGRADESPLANNER_H__
00003 
00004 #include <BWAPI.h>
00005 #include "BaseAgent.h"
00006 
00007 using namespace BWAPI;
00008 using namespace std;
00009 
00018 class UpgradesPlanner {
00019 
00020 private:
00021         static UpgradesPlanner* instance;
00022 
00023         UpgradesPlanner();
00024         
00025         vector<UpgradeType> upgradesP1;
00026         vector<UpgradeType> upgradesP2;
00027         vector<UpgradeType> upgradesP3;
00028         vector<TechType> techsP1;
00029         vector<TechType> techsP2;
00030         vector<TechType> techsP3;
00031 
00032         bool canUpgrade(UpgradeType type, Unit* unit);
00033         bool canResearch(TechType type, Unit* unit);
00034 
00035 public:
00037         ~UpgradesPlanner();
00038 
00040         static UpgradesPlanner* getInstance();
00041 
00043         bool checkUpgrade(BaseAgent* agent);
00044 };
00045 
00046 #endif
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines