BWAPI
|
00001 #pragma once 00002 #include "TestCase.h" 00003 #include <BWAPI.h> 00004 00005 class CancelResearchTest : public TestCase 00006 { 00007 public: 00008 CancelResearchTest(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 startFrame; 00016 int nextFrame; 00017 BWAPI::Unit* researcher; 00018 int correctMineralCount; 00019 int correctGasCount; 00020 int correctSupplyUsedCount; 00021 };