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

Method getPlayer

bwapi/BWAPI/Source/BWAPI/Server.cpp:712–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710 return playerLookup[player];
711 }
712 Player Server::getPlayer(int id) const
713 {
714 if (playerVector.size() <= static_cast<unsigned>(id))
715 return nullptr;
716 return playerVector[id];
717 }
718
719 int Server::getUnitID(Unit unit)
720 {

Callers 6

SendClientEventMethod · 0.45
updateDataMethod · 0.45
addMethod · 0.45
addEventMethod · 0.45
updateInternalDataMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected