sell

open fun sell(quantity: Shop.Quantity, id: Array<Int>): Boolean

Attempts to sell the specified quantity of the first item whose id matches the specified id

Return

true if the click to sell the item was successful, false otherwise

Parameters

quantity

the quantity to sell

id

the item id


open fun sell(quantity: Shop.Quantity, name: Array<String>): Boolean

Attempts to sell the specified quantity of the first item whose name equals one of the specified names

Return

true if the click to sell the item was successful, false otherwise

Parameters

quantity

the quantity to sell

name

the item name


open fun sell(quantity: Shop.Quantity, filter: Predicate<Item>): Boolean

Attempts to sell the specified quantity of the first item which matches the specified predicate

Return

true if the click to sell the item was successful, false otherwise

Parameters

quantity

the quantity to sell

filter

the item filter