From 76bc1a5c994b46d8a4486a1226f681f7a4982f1c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 3 Jan 2011 19:48:48 +0200 Subject: Impliment base items tags. And show this tags in inventory. --- src/resources/iteminfo.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/resources/iteminfo.h') diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index bb84193bb..3ccbf01ec 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -207,6 +207,12 @@ class ItemInfo void setDrawPriority(int n) { mDrawPriority = n; } + std::set &getTags() + { return mTags; } + + void addTag(int tag) + { mTags.insert(tag); } + protected: SpriteDisplay mDisplay; /**< Display info (like icon) */ std::string mName; @@ -233,10 +239,11 @@ class ItemInfo std::string mMissileParticle; /** Maps gender to sprite filenames. */ - std::map mAnimationFiles; + std::map mAnimationFiles; /** Stores the names of sounds to be played at certain event. */ - std::map< EquipmentSoundEvent, std::vector > mSounds; + std::map < EquipmentSoundEvent, std::vector > mSounds; + std::set mTags; }; #endif -- cgit v1.2.3-70-g09d2