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

Method UpgradeTest

bwapi/TestAIModule/Source/UpgradeTest.cpp:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace BWAPI;
5#define LOGTYPE log("UpgradeType: %s", upgradeType.c_str())
6UpgradeTest::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}
20void UpgradeTest::start()
21{
22 if (fail) return;

Callers

nothing calls this directly

Calls 1

whatUpgradesMethod · 0.80

Tested by

no test coverage detected