| 4 | using namespace BWAPI; |
| 5 | #define LOGTYPE log("UpgradeType: %s", upgradeType.c_str()) |
| 6 | UpgradeTest::UpgradeTest(BWAPI::UpgradeType upgradeType) : upgradeType(upgradeType), |
| 7 | upgraderType(upgradeType.whatUpgrades()), |
| 8 | previousUpgradeLevel(0), |
| 9 | startUpgradeFrame(-1), |
| 10 | nextUpdateFrame(-1), |
| 11 | upgrader(NULL), |
| 12 | correctMineralCount(0), |
| 13 | correctGasCount(0) |
| 14 | { |
| 15 | fail = false; |
| 16 | running = false; |
| 17 | BWAssertF(upgraderType!=UnitTypes::None,{fail=true;return;}); |
| 18 | BWAssertF(upgraderType!=UnitTypes::Unknown,{fail=true;return;}); |
| 19 | } |
| 20 | void UpgradeTest::start() |
| 21 | { |
| 22 | if (fail) return; |
nothing calls this directly
no test coverage detected