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

Function getLobbyPlayerCount

bwapi/BWAPI/Source/BWAPI/AutoMenuManager.cpp:169–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169unsigned int getLobbyPlayerCount()
170{
171 unsigned int rval = 0;
172 for (unsigned int i = 0; i < BW::PLAYABLE_PLAYER_COUNT; ++i)
173 {
174 if (BW::BWDATA::Players[i].nType == PlayerTypes::Player)
175 ++rval;
176 }
177 return rval;
178}
179unsigned int getLobbyPlayerReadyCount()
180{
181 unsigned int rval = 0;

Callers 1

onMenuFrameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected