| 3 | using namespace std; |
| 4 | using namespace BWAPI; |
| 5 | ResearchTest::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 | } |
| 18 | void ResearchTest::start() |
| 19 | { |
| 20 | if (fail) return; |
nothing calls this directly
no test coverage detected