From e55638d081e2e1ff6fbc06e0e8ac0381a04308e7 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 15 Sep 2010 21:29:18 +0000 Subject: updated comments, updated buy menu, info support for map window, added const to target selection --- src/core/item.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/core/item.h') diff --git a/src/core/item.h b/src/core/item.h index 21eae87..397d259 100644 --- a/src/core/item.h +++ b/src/core/item.h @@ -19,6 +19,8 @@ namespace core class Item { public: + enum Flags { Mount = 1, Trade = 2 }; + Item(const Info *info); ~Item(); @@ -31,10 +33,15 @@ public: inline int amount() const { return item_amount; } /** - * @brief information record + * @brief information card */ inline const Info *info() const { return item_info; } + /** + * @brief flags + */ + inline int flags() const { return item_flags; } + /* ---- mutators ----------------------------------------------- */ /** @@ -45,6 +52,8 @@ public: private: const Info *item_info; int item_amount; + + int item_flags; }; } // namespace core -- cgit v1.2.3