| 26 | running = false; |
| 27 | } |
| 28 | void BurrowTest::start() |
| 29 | { |
| 30 | if (fail) return; |
| 31 | running = true; |
| 32 | |
| 33 | int userCount = Broodwar->self()->completedUnitCount(unitType); |
| 34 | FAILTEST(userCount>=1); |
| 35 | for (Unit u : Broodwar->self()->getUnits()) |
| 36 | if (u->getType()==unitType) |
| 37 | unit = u; |
| 38 | |
| 39 | FAILTEST(unit!=NULL); |
| 40 | FAILTEST(unit->exists()); |
| 41 | FAILTEST(unit->isBurrowed()==false); |
| 42 | unit->burrow(); |
| 43 | FAILTEST(unit->getOrder()==Orders::Burrowing); |
| 44 | startFrame = Broodwar->getFrameCount(); |
| 45 | nextFrame = Broodwar->getFrameCount(); |
| 46 | |
| 47 | } |
| 48 | void BurrowTest::update() |
| 49 | { |
| 50 | if (running == false) return; |
nothing calls this directly
no test coverage detected