kotcity4 / kotcity.data / CityMap / canBuildBuildingAt

canBuildBuildingAt

fun canBuildBuildingAt(newBuilding: Building, coordinate: BlockCoordinate, waterCheck: Boolean = true): Boolean

See if we can plop a new building on the map at the given coordinate

Parameters

newBuilding - proposed building

coordinate - top left coordinate of building

waterCheck - if true, we will make sure we can't build this on water

Return
true if we can build here, false if not