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

Method isBuildable

bwapi/BWAPI/Source/BWAPI/GameImpl.cpp:386–395  ·  view source on GitHub ↗

--------------------------------------------- IS BUILDABLE -----------------------------------------------

Source from the content-addressed store, hash-verified

384 }
385 //--------------------------------------------- IS BUILDABLE -----------------------------------------------
386 bool GameImpl::isBuildable(int x, int y, bool includeBuildings) const
387 {
388 if ( Map::buildable(x,y) )
389 {
390 if ( includeBuildings && this->isVisible(x,y) && Map::isOccupied(x,y) )
391 return false;
392 return true;
393 }
394 return false;
395 }
396 //--------------------------------------------- IS VISIBLE -------------------------------------------------
397 bool GameImpl::isVisible(int x, int y) const
398 {

Callers 1

onMatchStartMethod · 0.45

Calls 1

isVisibleMethod · 0.95

Tested by

no test coverage detected