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

Method ResearchTest

bwapi/TestAIModule/Source/ResearchTest.cpp:5–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

whatResearchesMethod · 0.80

Tested by

no test coverage detected