diff options
author | David Athay <ko2fan@gmail.com> | 2009-01-14 14:11:35 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-20 11:04:37 -0700 |
commit | de068425200d5254181c6806ebeb4a72d68895ec (patch) | |
tree | 7ec17c0bbd7a2654dbad678cd129575ca74f8dcd /src/resources/iteminfo.h | |
parent | 088ccc74d9b8695c906eaabae8e4019ebf55c83c (diff) | |
download | mana-de068425200d5254181c6806ebeb4a72d68895ec.tar.gz mana-de068425200d5254181c6806ebeb4a72d68895ec.tar.bz2 mana-de068425200d5254181c6806ebeb4a72d68895ec.tar.xz mana-de068425200d5254181c6806ebeb4a72d68895ec.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 b7729d2c..773fd17c 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -54,6 +54,12 @@ class ItemInfo { } + void setId(int id) + { mId = id; } + + int getId() const + { return mId; } + void setName(const std::string &name) { mName = name; } @@ -115,6 +121,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. */ |