summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-03 19:48:48 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-03 20:00:51 +0200
commit76bc1a5c994b46d8a4486a1226f681f7a4982f1c (patch)
treea2326dcfe0aa2208c03d7432168bca9ae35b5da4 /src/resources/iteminfo.h
parent3436558bfd7bbbe0c63a0a89330b099b7c9da7ed (diff)
downloadmv-76bc1a5c994b46d8a4486a1226f681f7a4982f1c.tar.gz
mv-76bc1a5c994b46d8a4486a1226f681f7a4982f1c.tar.bz2
mv-76bc1a5c994b46d8a4486a1226f681f7a4982f1c.tar.xz
mv-76bc1a5c994b46d8a4486a1226f681f7a4982f1c.zip
Impliment base items tags. And show this tags in inventory.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h11
1 files changed, 9 insertions, 2 deletions
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<int> &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<int, std::string> mAnimationFiles;
+ std::map <int, std::string> mAnimationFiles;
/** Stores the names of sounds to be played at certain event. */
- std::map< EquipmentSoundEvent, std::vector<std::string> > mSounds;
+ std::map < EquipmentSoundEvent, std::vector<std::string> > mSounds;
+ std::set <int> mTags;
};
#endif