| 91 | } |
| 92 | |
| 93 | bool 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 | } |
nothing calls this directly
no test coverage detected