diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-19 22:49:55 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-19 22:49:55 +0000 |
commit | e8f7c4a06fce9e41fb23ffc42a566501a78210cb (patch) | |
tree | 3adf0b1f3eae778e9645450d0e51821142f7983b /src/core/item.h | |
parent | cc18095cded14f5e7e3f049e47fca2224134b647 (diff) |
player can only sell cargo on bases that allow it, trademenu layout updates
Diffstat (limited to 'src/core/item.h')
-rw-r--r-- | src/core/item.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/item.h b/src/core/item.h index cc81249..9c17dc9 100644 --- a/src/core/item.h +++ b/src/core/item.h @@ -28,7 +28,7 @@ public: /** * @brief associated amount */ - inline int amount() const { return item_amount; } + inline long amount() const { return item_amount; } /** * @brief information card @@ -45,18 +45,18 @@ public: /** * @brief set associated amount */ - void set_amount(const int amount); + void set_amount(const long amount); - void inc_amount(const int amount); + void inc_amount(const long amount); - void dec_amount(const int amount); + void dec_amount(const long amount); void set_price(const long price); private: const Info *item_info; long item_price; - int item_amount; + long item_amount; }; } // namespace core |