MCPcopy Create free account
hub / github.com/bwapi/bwapi / CancelUpgradeTest

Method CancelUpgradeTest

bwapi/TestAIModule/Source/CancelUpgradeTest.cpp:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace std;
4using namespace BWAPI;
5CancelUpgradeTest::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}
19void CancelUpgradeTest::start()
20{
21 if (fail) return;

Callers

nothing calls this directly

Calls 1

whatUpgradesMethod · 0.80

Tested by

no test coverage detected