BWAPI
|
00001 #pragma once 00002 #include "TestCase.h" 00003 #include <BWAPI.h> 00004 00005 class CancelConstructionTest : public TestCase 00006 { 00007 public: 00008 CancelConstructionTest(BWAPI::UnitType unitType, bool terranHalt=false); 00009 virtual void start(); 00010 virtual void update(); 00011 virtual void stop(); 00012 private: 00013 BWAPI::UnitType unitType; 00014 BWAPI::UnitType builderType; 00015 int previousUnitCount; 00016 int startFrame; 00017 int nextFrame; 00018 int finishFrame; 00019 BWAPI::TilePosition buildLocation; 00020 BWAPI::Unit* builder; 00021 BWAPI::Unit* building; 00022 int correctMineralCount; 00023 int correctGasCount; 00024 int correctSupplyUsedCount; 00025 bool terranHalt; 00026 };