class Inventory
Inventory() |
fun add(tradeable: Tradeable, quantity: Int): Int |
|
fun forEach(action: (Tradeable, Int) -> Unit): Unit |
|
fun has(tradeable: Tradeable, quantity: Int): Boolean |
|
fun put(tradeable: Tradeable, quantity: Int): Int |
|
fun quantity(tradeable: Tradeable): Int |
|
fun subtract(tradeable: Tradeable, quantity: Int): Int |