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

Function getLobbyOpenCount

bwapi/BWAPI/Source/BWAPI/AutoMenuManager.cpp:189–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187 return rval;
188}
189unsigned int getLobbyOpenCount()
190{
191 unsigned int rval = 0;
192 for (unsigned int i = 0; i < BW::PLAYABLE_PLAYER_COUNT; ++i)
193 {
194 if (BW::BWDATA::Players[i].nType == PlayerTypes::EitherPreferHuman)
195 ++rval;
196 }
197 return rval;
198}
199
200void AutoMenuManager::onMenuFrame()
201{

Callers 1

onMenuFrameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected