diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-02-12 17:02:17 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-02-12 17:02:17 +0200 |
commit | 992c2920f7e1940aa293e27cf4ea7ec23668a673 (patch) | |
tree | 4328076c6585a015433cb8bb763eab687da675bc /src/resources/iteminfo.h | |
parent | 428770c113abf002e5cc0b79ae872db1f26cf283 (diff) | |
download | ManaVerse-992c2920f7e1940aa293e27cf4ea7ec23668a673.tar.gz ManaVerse-992c2920f7e1940aa293e27cf4ea7ec23668a673.tar.bz2 ManaVerse-992c2920f7e1940aa293e27cf4ea7ec23668a673.tar.xz ManaVerse-992c2920f7e1940aa293e27cf4ea7ec23668a673.zip |
Add items attribute what allow hide other sprites only by id.
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 8dbef87b7..ba7866518 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -29,6 +29,7 @@ #include <map> #include <string> #include <vector> +#include <set> enum EquipmentSoundEvent { @@ -220,6 +221,11 @@ class ItemInfo void addTag(int tag) { mTags[tag] = 1; } + void setRemoveSpriteIds(std::set<int> ids) + { mRemoveSpriteIds = ids; } + + bool isRemoveSpriteId(int id) const; + protected: SpriteDisplay mDisplay; /**< Display info (like icon) */ std::string mName; @@ -234,6 +240,7 @@ class ItemInfo int mDrawAfter; int mDrawPriority; int mRemoveSprite; + std::set<int> mRemoveSpriteIds; // Equipment related members. /** Attack type, in case of weapon. |