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

Method onUnitCreate

bwapi/TestAIModule/Source/TestModule.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 runTestCases();
33}
34void TestModule::onUnitCreate(Unit unit)
35{
36 if (unit!=NULL)
37 Broodwar->printf("A %s [%p] has been created",unit->getType().c_str(),unit);
38 else
39 Broodwar->printf("A %p has been created",unit);
40}
41void TestModule::onUnitDestroy(Unit unit)
42{
43 if (unit!=NULL)

Callers

nothing calls this directly

Calls 3

printfMethod · 0.80
c_strMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected