Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-09-15 21:29:18 +0000
committerStijn Buys <ingar@osirion.org>2010-09-15 21:29:18 +0000
commite55638d081e2e1ff6fbc06e0e8ac0381a04308e7 (patch)
tree511ccb478adf2acd3cc93f66d217b09f3e3a06dc /src/core/item.h
parentf612f19e095b8d0ba49f5bcdec6a582824315d69 (diff)
updated comments, updated buy menu, info support for map window, added const to target selection
Diffstat (limited to 'src/core/item.h')
-rw-r--r--src/core/item.h11
1 files changed, 10 insertions, 1 deletions
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