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

Method isFlagEnabled

bwapi/BWAPI/Source/BWAPI/GameImpl.cpp:219–231  ·  view source on GitHub ↗

--------------------------------------------- IS FLAG ENABLED --------------------------------------------

Source from the content-addressed store, hash-verified

217 }
218 //--------------------------------------------- IS FLAG ENABLED --------------------------------------------
219 bool GameImpl::isFlagEnabled(int flag) const
220 {
221 // Check if index is valid
222 if ( flag < 0 || flag >= BWAPI::Flag::Max )
223 return false;
224
225 // Make completeMapInfo appear true if the match has ended
226 if ( flag == Flag::CompleteMapInformation && this->calledMatchEnd )
227 return true;
228
229 // Return the state of the flag
230 return this->flags[flag];
231 }
232 //----------------------------------------------- ENABLE FLAG ----------------------------------------------
233 void GameImpl::enableFlag(int flag)
234 {

Callers 15

onReceiveTextMethod · 0.95
indexToUnitMethod · 0.95
getMousePositionMethod · 0.95
getMouseStateMethod · 0.95
getKeyStateMethod · 0.95
getScreenPositionMethod · 0.95
hasCreepMethod · 0.95
canTargetUnitFunction · 0.45
CommandFilterFunction · 0.45
getRaceMethod · 0.45
getStartLocationMethod · 0.45
updateDataMethod · 0.45

Calls

no outgoing calls

Tested by 1

onStartMethod · 0.36