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

Method buildable

bwapi/TestAIModule/Source/BuildingPlacer.cpp:93–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93bool BuildingPlacer::buildable(BWAPI::TilePosition position)
94{
95 //returns true if this tile is currently buildable, takes into account units on tile
96 if ( !BWAPI::Broodwar->isBuildable(position) )
97 return false;
98
99 if ( !BWAPI::Broodwar->getUnitsOnTile(position, BWAPI::Filter::IsBuilding && !BWAPI::Filter::IsLifted).empty() )
100 return false;
101
102 return true;
103}

Callers

nothing calls this directly

Calls 2

getUnitsOnTileMethod · 0.80
isBuildableMethod · 0.45

Tested by

no test coverage detected