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

Method CancelResearchTest

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

Source from the content-addressed store, hash-verified

3using namespace std;
4using namespace BWAPI;
5CancelResearchTest::CancelResearchTest(BWAPI::TechType techType) : techType(techType),
6 researcherType(techType.whatResearches()),
7 startFrame(-1),
8 nextFrame(-1),
9 researcher(NULL),
10 correctMineralCount(0),
11 correctGasCount(0),
12 correctSupplyUsedCount(0)
13{
14 fail = false;
15 running = false;
16 BWAssertF(researcherType!=UnitTypes::None,{fail=true;return;});
17 BWAssertF(researcherType!=UnitTypes::Unknown,{fail=true;return;});
18}
19void CancelResearchTest::start()
20{
21 if (fail) return;

Callers

nothing calls this directly

Calls 1

whatResearchesMethod · 0.80

Tested by

no test coverage detected