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

Method onUnitDestroy

bwapi/TestAIModule/Source/TestModule.cpp:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 Broodwar->printf("A %p has been created",unit);
40}
41void TestModule::onUnitDestroy(Unit unit)
42{
43 if (unit!=NULL)
44 Broodwar->printf("A %s [%p] has been destroyed",unit->getType().c_str(),unit);
45 else
46 Broodwar->printf("A %p has been destroyed",unit);
47}
48void TestModule::runTestCases()
49{
50 if (currentTestCase==NULL && testCases.empty()==false && Broodwar->getFrameCount()>lastEndFrame+15)

Callers

nothing calls this directly

Calls 3

printfMethod · 0.80
c_strMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected