From f89de74b1ac1cd9a02a70dab9221d601296da8cd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Nov 2015 17:23:32 +0300 Subject: Add intmap defines. --- src/resources/iteminfo.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/resources/iteminfo.h') diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index ebc267e15..1233daf73 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -33,13 +33,15 @@ #include "resources/soundinfo.h" #include "resources/spritedisplay.h" +#include "utils/intmap.h" + namespace ColorDB { class ItemColorData; } // sprite, -typedef std::map > SpriteToItemMap; +typedef std::map SpriteToItemMap; typedef SpriteToItemMap::const_iterator SpriteToItemMapCIter; /** @@ -202,7 +204,7 @@ class ItemInfo final void setDrawPriority(const int direction, const int n); - const std::map &getTags() const A_WARN_UNUSED + const IntMap &getTags() const A_WARN_UNUSED { return mTags; } void addTag(const int tag) @@ -239,8 +241,8 @@ class ItemInfo final int getReplaceToSpriteId(int id) const A_WARN_UNUSED; - std::map *addReplaceSprite(const int sprite, - const int direction); + IntMap *addReplaceSprite(const int sprite, + const int direction); const SpriteToItemMap *getSpriteToItemReplaceMap(const int directions) const A_WARN_UNUSED; -- cgit v1.2.3-60-g2f50