29 int quantity,
int price) :
Represents one or more instances of a certain item type.
int mQuantity
Number of items.
void setInvIndex(int index)
Sets the inventory index of this item.
const ItemInfo & getInfo() const
Returns information about this item type.
ShopItem(int inventoryIndex, int id, int quantity, int price)
Constructor.
void addDuplicate(int inventoryIndex, int quantity)
Add a duplicate.
int sellCurrentDuplicate(int quantity)
Reduces the quantity of the topmost duplicate by the specified amount.
std::stack< DuplicateItem > mDuplicates
static std::string formatCurrency(int value)
Formats the given number in the correct currency format.
Struct to keep track of duplicates.