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

Method _getPlayer

bwapi/BWAPI/Source/BWAPI/GameInternals.cpp:263–268  ·  view source on GitHub ↗

------------------------------------------- GET PLAYER INTERNAL ------------------------------------------

Source from the content-addressed store, hash-verified

261 }
262 //------------------------------------------- GET PLAYER INTERNAL ------------------------------------------
263 PlayerImpl *GameImpl::_getPlayer(int id)
264 {
265 if (id < 0 || id >= BW::PLAYER_COUNT)
266 return players[BW::PLAYER_COUNT - 1];
267 return players[id];
268 }
269 int GameImpl::_currentPlayerId()
270 {
271 return BW::BWDATA::g_LocalHumanID;

Callers 3

onGameStartMethod · 0.95
updateInternalDataMethod · 0.80
updateDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected