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