kotcity4 / kotcity.automata / CensusTaker

CensusTaker

class CensusTaker : Debuggable

Constructors

<init>

CensusTaker(cityMap: CityMap)

Properties

cityMap

val cityMap: CityMap

debug

var debug: Boolean

population

var population: Int

resourceCounts

var resourceCounts: ResourceCounts

Functions

addUpdateListener

fun addUpdateListener(listener: () -> Unit): Unit

supplyRatio

fun supplyRatio(tradeable: Tradeable): Double

tick

fun tick(): Unit

tradeBalance

fun tradeBalance(tradeable: Tradeable): Int

Inherited Functions

debug

open fun debug(message: String): Unit