sell

static boolean sell(Shop.Quantity quantity, Array<int> id)

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

static boolean sell(Shop.Quantity quantity, Array<String> name)

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

static boolean sell(Shop.Quantity quantity, Predicate<Item> filter)

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