kotcity4 / kotcity.data / FireStation

FireStation

class FireStation : Building

Constructors

<init>

FireStation(cityMap: CityMap)

Properties

description

var description: String?

Extended description of this building

height

var height: Int

Height in BlockCoordinate of the building

powerRequired

val powerRequired: Int

How many units of power this building needs to be happy

width

var width: Int

Width in BlockCoordinate of the building

Inherited Properties

borderColor

open var borderColor: Color

Default border color, used for rendering

cityMap

open val cityMap: CityMap

consumes

open val consumes: MutableMap<Tradeable, Int>

A list of Tradeable (with quantities) that this building consumes

contracts

open val contracts: MutableList<Contract>

goodwill

var goodwill: Int

happiness

open var happiness: Int

How happy the building is. This can be positive or negative.

inventory

open val inventory: Inventory

level

var level: Int

name

open var name: String?

Friendly name (eg. "Slummy apartment") of building

pollution

open var pollution: Double

How much pollution this building generates...

powered

var powered: Boolean

true if we have power, false if not

produces

open val produces: MutableMap<Tradeable, Int>

sprite

open var sprite: String?

Filename of sprite asset used to paint this building (I guess maybe this should live in renderer?)

upkeep

open var upkeep: Int

Eventually, how much $$$ is required to keep this building going. Probably going to be used for civic buildings like town hall.

uuid

val uuid: String

Unique ID of building

variety

open val variety: String?

Used for things like PowerPlant so we know what it is (coal/nuclear)

zots

var zots: List<Zot>

List of Zot that this building suffers from. Populated by... ZotPopulator

Inherited Functions

createContract

fun createContract(otherTradeEntity: TradeEntity, tradeable: Tradeable, quantity: Int, path: Path?): Unit

equals

open fun equals(other: Any?): Boolean

payWorkers

fun payWorkers(): Unit

toString

open fun toString(): String

zone

fun zone(): Zone?