kotcity4 / kotcity.data / DesirabilityLayer

DesirabilityLayer

data class DesirabilityLayer : QuantizedMap<Double>

Represents a grid of "desirability values" that we store in the CityMap

Constructors

<init>

DesirabilityLayer(zoneType: Zone, level: Int)

Represents a grid of "desirability values" that we store in the CityMap

Properties

level

val level: Int

zoneType

val zoneType: Zone

Inherited Properties

map

var map: MutableMap<BlockCoordinate, T>

quantize

val quantize: Int

Inherited Functions

clear

fun clear(): Unit

clone

fun clone(): QuantizedMap<T>

count

fun count(): Int

entries

fun entries(): MutableSet<MutableEntry<BlockCoordinate, T>>

forEach

fun forEach(lambda: (t: BlockCoordinate, T) -> Unit): Unit

get

operator fun get(blockCoordinate: BlockCoordinate): T?

keys

fun keys(): MutableSet<BlockCoordinate>

map

fun map(function: (Entry<BlockCoordinate, T>) -> Any): List<Any>

maxBy

fun maxBy(function: (Entry<BlockCoordinate, T>) -> Double): Entry<BlockCoordinate, T>?

put

fun put(blockCoordinate: BlockCoordinate, value: T): Unit

remove

fun remove(blockCoordinate: BlockCoordinate): Unit

set

operator fun set(blockCoordinate: BlockCoordinate, value: T): Unit

unquantized

fun unquantized(coordinate: BlockCoordinate): List<BlockCoordinate>