kotcity4 / kotcity.data / CityTradeEntity

CityTradeEntity

data class CityTradeEntity : TradeEntity

Constructors

<init>

CityTradeEntity(coordinate: BlockCoordinate, building: Building)

Properties

building

val building: Building

coordinate

val coordinate: BlockCoordinate

Functions

addContract

fun addContract(contract: Contract): Unit

building

fun building(): Building?

consumesQuantity

fun consumesQuantity(tradeable: Tradeable): Int

createContract

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

currentQuantityForSale

fun currentQuantityForSale(tradeable: Tradeable): Int

currentQuantityWanted

fun currentQuantityWanted(tradeable: Tradeable): Int

description

fun description(): String?

hasAnyContracts

fun hasAnyContracts(): Boolean

producesQuantity

fun producesQuantity(tradeable: Tradeable): Int

quantityOnHand

fun quantityOnHand(tradeable: Tradeable): Int

voidContractsWith

fun voidContractsWith(otherTradeEntity: TradeEntity): Unit