From 9c91a9767b570fdc3c3e19e1f452f9a8257f9999 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 18 Sep 2010 18:50:55 +0000 Subject: trade updates --- src/core/item.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/core/item.cc') diff --git a/src/core/item.cc b/src/core/item.cc index a6cc89f..3528c1a 100644 --- a/src/core/item.cc +++ b/src/core/item.cc @@ -16,6 +16,7 @@ Item::Item(const Info *info) { item_info = info; item_amount = 0; + item_price = 0; } Item::~Item() @@ -29,5 +30,20 @@ void Item::set_amount(const int amount) item_amount = amount; } +void Item::inc_amount(const int amount) +{ + item_amount += amount; +} + +void Item::dec_amount(const int amount) +{ + item_amount -= amount; +} + +void Item::set_price(const long price) +{ + item_price = price; +} + } // namespace core -- cgit v1.2.3