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

Method onUnitCreate

bwapi/TestAIModule/Source/ExistenceTest.cpp:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 }
17}
18void ExistenceTest::onUnitCreate(Unit unit)
19{
20 Broodwar << "Unit " << unit->getID() << " [" << unit->getType() << "] has been created" << std::endl;
21}
22void ExistenceTest::onUnitDestroy(Unit unit)
23{
24 Broodwar << "Unit " << unit->getID() << " [" << unit->getType() << "] has been destroyed" << std::endl;

Callers

nothing calls this directly

Calls 2

getIDMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected