BWAPI
|
00001 #pragma once 00002 #include "TestCase.h" 00003 #include <BWAPI.h> 00004 00005 class MorphTest : public TestCase 00006 { 00007 public: 00008 MorphTest(BWAPI::UnitType unitType); 00009 virtual void start(); 00010 virtual void update(); 00011 virtual void stop(); 00012 private: 00013 BWAPI::UnitType unitType; 00014 BWAPI::UnitType producerType; 00015 int previousUnitCount; 00016 int startFrame; 00017 int nextFrame; 00018 BWAPI::Unit* producer; 00019 bool finishingMorph; 00020 int finishFrame; 00021 int correctMineralCount; 00022 int correctGasCount; 00023 int correctSupplyUsedCount; 00024 };