kotcity4 / kotcity.data / HasContracts

HasContracts

interface HasContracts

Functions

consumesQuantity

abstract fun consumesQuantity(tradeable: Tradeable): Int

currentQuantityForSale

abstract fun currentQuantityForSale(tradeable: Tradeable): Int

currentQuantityWanted

abstract fun currentQuantityWanted(tradeable: Tradeable): Int

needsAnyContracts

open fun needsAnyContracts(): Boolean

producesQuantity

abstract fun producesQuantity(tradeable: Tradeable): Int

productList

abstract fun productList(): List<Tradeable>

summarizeContracts

abstract fun summarizeContracts(): String

totalBeingBought

abstract fun totalBeingBought(tradeable: Tradeable): Int

totalBeingSold

abstract fun totalBeingSold(tradeable: Tradeable): Int

Inheritors

HasConcreteContacts

interface HasConcreteContacts : HasContracts

NationalTradeEntity

data class NationalTradeEntity : HasContracts, HasInventory

OutsideTradeEntity

data class OutsideTradeEntity : TradeEntity, HasContracts, HasInventory