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

Function getMappedIndex

bwapi/BWAPI/Source/Detours.cpp:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76int getMappedIndex(int stormID)
77{
78 for (int i = 0; i < BW::PLAYABLE_PLAYER_COUNT; ++i)
79 {
80 if ( mappedIndex[i] == stormID )
81 return i;
82 }
83 return -1;
84}
85
86void _InitializePlayerConsole() // after
87{

Callers 1

_InitializePlayerConsoleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected