| 3 | using namespace std; |
| 4 | using namespace BWAPI; |
| 5 | CancelUpgradeTest::CancelUpgradeTest(BWAPI::UpgradeType upgradeType) : upgradeType(upgradeType), |
| 6 | upgraderType(upgradeType.whatUpgrades()), |
| 7 | startFrame(-1), |
| 8 | nextFrame(-1), |
| 9 | upgrader(NULL), |
| 10 | correctMineralCount(0), |
| 11 | correctGasCount(0), |
| 12 | correctSupplyUsedCount(0) |
| 13 | { |
| 14 | fail = false; |
| 15 | running = false; |
| 16 | BWAssertF(upgraderType!=UnitTypes::None,{fail=true;return;}); |
| 17 | BWAssertF(upgraderType!=UnitTypes::Unknown,{fail=true;return;}); |
| 18 | } |
| 19 | void CancelUpgradeTest::start() |
| 20 | { |
| 21 | if (fail) return; |
nothing calls this directly
no test coverage detected