diff options
author | David Athay <ko2fan@gmail.com> | 2009-01-14 14:11:35 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2009-01-14 14:11:35 +0000 |
commit | 451b5887beae88c1f3c139a35d23e5521e896e7d (patch) | |
tree | e1d5f5058311a1121d1eb2c122eb3d1eb5cee372 /src/resources/iteminfo.h | |
parent | ac3d5127cb7f3e3a4f5fa7a3ceb6f7c8de6808be (diff) | |
download | mana-client-451b5887beae88c1f3c139a35d23e5521e896e7d.tar.gz mana-client-451b5887beae88c1f3c139a35d23e5521e896e7d.tar.bz2 mana-client-451b5887beae88c1f3c139a35d23e5521e896e7d.tar.xz mana-client-451b5887beae88c1f3c139a35d23e5521e896e7d.zip |
Added linking to item's just using [Item Name] in chat
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r-- | src/resources/iteminfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index 7cc3ba15..1c1d8467 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -122,6 +122,12 @@ class ItemInfo { } + void setId(int id) + { mId = id; } + + int getId() const + { return mId; } + void setName(const std::string &name) { mName = name; } @@ -189,6 +195,7 @@ class ItemInfo char mType; /**< Item type. */ short mWeight; /**< Weight in grams. */ int mView; /**< Item ID of how this item looks. */ + int mId; /**< Item ID */ // Equipment related members SpriteAction mAttackType; /**< Attack type, in case of weapon. */ |