deposit

open fun deposit(itemId: Int, amount: Int): Boolean

Deposits the specified amount of an item with the specified id

Return

true if deposited successfully, false otherwise

Parameters

itemId

the item id

amount

the amount to deposit


open fun deposit(itemName: String, amount: Int): Boolean

Deposits the specified amount of an item with the specified name

Return

true if deposited successfully, false otherwise

Parameters

itemName

the item name

amount

the amount to deposit


open fun deposit(item: InventoryItem, amount: Int): Boolean

Deposits the specified quantity of the specified item

Return

true if deposited successfully, false otherwise

Parameters

item

the item to deposit

amount

the amount to deposit