diff options
Diffstat (limited to 'src/item.h')
-rw-r--r-- | src/item.h | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -25,6 +25,7 @@ #include "event.h" #include "resources/itemdb.h" +#include "resources/resource.h" class Image; @@ -56,11 +57,6 @@ class Item Image *getImage() const { return mImage; } /** - * Returns the item image. - */ - Image *getDrawImage() const { return mDrawImage; } - - /** * Sets the number of items. */ void setQuantity(int quantity) { mQuantity = quantity; } @@ -121,8 +117,7 @@ class Item protected: int mId; /**< Item type id. */ - Image *mImage = nullptr; /**< Item image. */ - Image *mDrawImage = nullptr; /**< Draw image. */ + ResourceRef<Image> mImage; /**< Item image. */ int mQuantity; /**< Number of items. */ bool mEquipped; /**< Item is equipped. */ bool mInEquipment = false; /**< Item is in equipment */ |