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

Function getLobbyPlayerReadyCount

bwapi/BWAPI/Source/BWAPI/AutoMenuManager.cpp:179–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 return rval;
178}
179unsigned int getLobbyPlayerReadyCount()
180{
181 unsigned int rval = 0;
182 for (unsigned int i = 0; i < BW::PLAYABLE_PLAYER_COUNT; ++i)
183 {
184 if (BW::BWDATA::Players[i].nType == PlayerTypes::Player && BW::BWDATA::PlayerDownloadStatus[i] >= 100)
185 ++rval;
186 }
187 return rval;
188}
189unsigned int getLobbyOpenCount()
190{
191 unsigned int rval = 0;

Callers 1

onMenuFrameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected