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

Method onUnitMorph

bwapi/TestAIModule/Source/EventTest.cpp:306–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304 }
305}
306void EventTest::onUnitMorph(Unit unit)
307{
308 BWAssert(onStartCalled==true);
309 BWAssert(onEndCalled==false);
310 if (strictEventChecking)
311 {
312 BWAssert(isEventExpectedNext(Event::UnitMorph(unit)));
313 if (!expectedEvents.empty())
314 expectedEvents.pop_front();
315 }
316}
317void EventTest::onUnitRenegade(Unit unit)
318{
319 BWAssert(onStartCalled==true);

Callers

nothing calls this directly

Calls 1

UnitMorphClass · 0.85

Tested by

no test coverage detected