diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2006-08-17 19:11:28 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2006-08-17 19:11:28 +0000 |
commit | 19ce91290d85620ee464e85c617575986cd34aec (patch) | |
tree | adc7aa4b36553510485cb1197e76108326401b9d /src/resources/iteminfo.h | |
parent | ece19f6d44e2604f1d2fee9e0ece02030105e0d4 (diff) | |
download | mana-19ce91290d85620ee464e85c617575986cd34aec.tar.gz mana-19ce91290d85620ee464e85c617575986cd34aec.tar.bz2 mana-19ce91290d85620ee464e85c617575986cd34aec.tar.xz mana-19ce91290d85620ee464e85c617575986cd34aec.zip |
the item icons are now stored in different files with more descriptive names
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r-- | src/resources/iteminfo.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index 54e7907b..afa2e857 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -26,6 +26,8 @@ #include <string> +#include "image.h" + /** * Defines a class for storing item infos. */ @@ -38,7 +40,8 @@ class ItemInfo * Constructor. */ ItemInfo(): - mImage(0), + mImage(NULL), + mImageName(""), mArt(0), mType(0), mWeight(0), @@ -59,10 +62,10 @@ class ItemInfo getName() { return mName; } void - setImage(short image) { mImage = image; } + setImage(const std::string &image); - short - getImage() { return mImage; } + Image* + getImage(); void setDescription(const std::string &description) @@ -101,9 +104,10 @@ class ItemInfo /** * Destructor. */ - ~ItemInfo() {} + ~ItemInfo(); - short mImage; + Image* mImage; + std::string mImageName; short mArt; std::string mName; std::string mDescription; |