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

Method getUnit

bwapi/BWAPI/Source/BWAPI/Server.cpp:730–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728 return unitLookup[unit];
729 }
730 Unit Server::getUnit(int id) const
731 {
732 if (unitVector.size() <= static_cast<unsigned>(id))
733 return nullptr;
734 return unitVector[id];
735 }
736
737 void Server::callOnFrame()
738 {

Callers 3

SendClientEventMethod · 0.45
addMethod · 0.45
addEventMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected