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

Method visible

bwapi/BWAPI/Source/BWAPI/Map.cpp:109–115  ·  view source on GitHub ↗

------------------------------------------------ VISIBLE -------------------------------------------------

Source from the content-addressed store, hash-verified

107 }
108 //------------------------------------------------ VISIBLE -------------------------------------------------
109 bool Map::visible(int x, int y)
110 {
111 BW::activeTile value = getActiveTile(x, y);
112 if ( BroodwarImpl.isReplay() )
113 return value.bVisibilityFlags != 255;
114 return !(value.bVisibilityFlags & (1 << BroodwarImpl.BWAPIPlayer->getIndex()));
115 }
116 //--------------------------------------------- HAS EXPLORED -----------------------------------------------
117 bool Map::isExplored(int x, int y)
118 {

Callers

nothing calls this directly

Calls 2

isReplayMethod · 0.45
getIndexMethod · 0.45

Tested by

no test coverage detected