From 451b5887beae88c1f3c139a35d23e5521e896e7d Mon Sep 17 00:00:00 2001 From: David Athay Date: Wed, 14 Jan 2009 14:11:35 +0000 Subject: Added linking to item's just using [Item Name] in chat --- src/resources/iteminfo.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/iteminfo.h') 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. */ -- cgit v1.2.3-70-g09d2