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

Method dropPlayers

bwapi/BWAPI/Source/BWAPI/GameInternals.cpp:98–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97 }
98 void GameImpl::dropPlayers()
99 {
100 for ( int i = 0; i < BW::PLAYABLE_PLAYER_COUNT; ++i )
101 {
102 if ( BW::BWDATA::playerStatusArray[i] & 0x10000 )
103 {
104 int iplr = this->stormIdToPlayerId(i);
105 if ( iplr != -1 && iplr != BW::BWDATA::g_LocalHumanID )
106 {
107 this->droppedPlayers.push_back(this->players[iplr]);
108 SNetDropPlayer(i, 0x40000006); // The value used when dropping
109 }
110 }
111 }
112 }
113 //------------------------------------------------ MOUSE/KEY INPUT -----------------------------------------
114 void GameImpl::pressKey(int key)
115 {

Callers 1

DrawDialogHookFunction · 0.80

Calls 1

stormIdToPlayerIdMethod · 0.95

Tested by

no test coverage detected