summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2006-08-17 19:11:28 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2006-08-17 19:11:28 +0000
commit19ce91290d85620ee464e85c617575986cd34aec (patch)
treeadc7aa4b36553510485cb1197e76108326401b9d /src/resources/iteminfo.h
parentece19f6d44e2604f1d2fee9e0ece02030105e0d4 (diff)
downloadmana-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.h16
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;