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

Method isExplored

bwapi/BWAPI/Source/BWAPI/Map.cpp:117–123  ·  view source on GitHub ↗

--------------------------------------------- HAS EXPLORED -----------------------------------------------

Source from the content-addressed store, hash-verified

115 }
116 //--------------------------------------------- HAS EXPLORED -----------------------------------------------
117 bool Map::isExplored(int x, int y)
118 {
119 BW::activeTile value = getActiveTile(x, y);
120 if ( BroodwarImpl.isReplay() )
121 return value.bExploredFlags != 255;
122 return !(value.bExploredFlags & (1 << BroodwarImpl.BWAPIPlayer->getIndex()));
123 }
124 //----------------------------------------------- HAS CREEP ------------------------------------------------
125 bool Map::hasCreep(int x, int y)
126 {

Callers

nothing calls this directly

Calls 2

isReplayMethod · 0.45
getIndexMethod · 0.45

Tested by

no test coverage detected