BWAPI
|
00001 #pragma once 00002 #include "TestCase.h" 00003 #include <BWAPI.h> 00004 00005 class ResearchTest : public TestCase 00006 { 00007 public: 00008 ResearchTest(BWAPI::TechType techType); 00009 virtual void start(); 00010 virtual void update(); 00011 virtual void stop(); 00012 private: 00013 BWAPI::TechType techType; 00014 BWAPI::UnitType researcherType; 00015 int startResearchFrame; 00016 int nextUpdateFrame; 00017 BWAPI::Unit* researcher; 00018 int correctMineralCount; 00019 int correctGasCount; 00020 };