BWAPI
|
00001 #pragma once 00002 #include "TestCase.h" 00003 #include <BWAPI.h> 00004 00005 class UseTechTest : public TestCase 00006 { 00007 public: 00008 UseTechTest(BWAPI::TechType techType); 00009 virtual void start(); 00010 virtual void update(); 00011 virtual void stop(); 00012 private: 00013 void checkPosition(); 00014 void useTech(); 00015 BWAPI::TechType techType; 00016 BWAPI::UnitType userType; 00017 int startFrame; 00018 int nextFrame; 00019 BWAPI::Unit* user; 00020 BWAPI::Position targetPosition; 00021 BWAPI::Unit* targetUnit; 00022 bool isInPosition; 00023 bool usedTech; 00024 bool testSucceeded; 00025 BWAPI::Position startPosition; 00026 BWAPI::UnitType targetType; 00027 int currentEnergy; 00028 };