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

Function drawVisibilityData

bwapi/ExampleAIClient/Source/ExampleAIClient.cpp:243–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void drawVisibilityData()
244{
245 int wid = Broodwar->mapHeight(), hgt = Broodwar->mapWidth();
246 for ( int x = 0; x < wid; ++x )
247 for ( int y = 0; y < hgt; ++y )
248 {
249 if ( Broodwar->isExplored(x, y) )
250 Broodwar->drawDotMap(x*32+16, y*32+16, Broodwar->isVisible(x, y) ? Colors::Green : Colors::Blue);
251 else
252 Broodwar->drawDotMap(x*32+16, y*32+16, Colors::Red);
253 }
254}
255
256void showPlayers()
257{

Callers 1

mainFunction · 0.85

Calls 5

drawDotMapMethod · 0.80
mapHeightMethod · 0.45
mapWidthMethod · 0.45
isExploredMethod · 0.45
isVisibleMethod · 0.45

Tested by

no test coverage detected