summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2009-01-14 14:11:35 +0000
committerIra Rice <irarice@gmail.com>2009-01-20 11:04:37 -0700
commitde068425200d5254181c6806ebeb4a72d68895ec (patch)
tree7ec17c0bbd7a2654dbad678cd129575ca74f8dcd /src/resources/iteminfo.h
parent088ccc74d9b8695c906eaabae8e4019ebf55c83c (diff)
downloadmana-client-de068425200d5254181c6806ebeb4a72d68895ec.tar.gz
mana-client-de068425200d5254181c6806ebeb4a72d68895ec.tar.bz2
mana-client-de068425200d5254181c6806ebeb4a72d68895ec.tar.xz
mana-client-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.h7
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. */