kotcity4 / kotcity.data / CityMap / buildingBlocks

buildingBlocks

fun buildingBlocks(coordinate: BlockCoordinate, building: Building): List<BlockCoordinate>

Takes a coordinate and a building and returns the "footprint" of the building. In other words, each block the building sits in.

Parameters

coordinate - Coordinate of the building

building - The building

Return
a list of matching blocks