The class which holds support for further abstraction for shops.
Optional< CurrencyType > currency
Gets the optional currency for this shop item.
void setCurrency(CurrencyType type)
StoreItem(int id, int amount, int value)
StoreItem(int id, int amount)
CurrencyType getShopCurrency(Store store)
int restockTimer
The time in minutes it takes to restock this store item.
StoreItem(int id, int amount, OptionalInt value, Optional< CurrencyType > currency)
Creates a new Item.
OptionalInt value
Gets the optional value for this shop item.
StoreItem copy()
A substitute for Object#clone() that creates another 'copy' of this instance.
void setShopValue(int value)
static final int RESTOCK_RATE
The time in minutes an item in the store has to wait before it can be reduced.
The enumerated type whom holds all the currencies usable for a server.