diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-18 18:50:55 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-18 18:50:55 +0000 |
commit | 9c91a9767b570fdc3c3e19e1f452f9a8257f9999 (patch) | |
tree | 9ac10114a3378134ea19dac3d7f7639532c3bf5a /src/core/item.cc | |
parent | fc4809e41bc5694231046eb2fd4c324c4daba13f (diff) |
trade updates
Diffstat (limited to 'src/core/item.cc')
-rw-r--r-- | src/core/item.cc | 16 |
1 files changed, 16 insertions, 0 deletions
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 |