From f68fa667c8723cc39f113502c53cc5c35eb32ab6 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 16 Nov 2011 14:44:01 +0200 Subject: Clean InventoryItem interface a bit --- src/inventory.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/inventory.h') diff --git a/src/inventory.h b/src/inventory.h index 32e1cd93e..64fab921b 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -51,11 +51,11 @@ public: virtual std::string getImageBasename() const { return ""; } #ifndef SERVER // Shall return an image of the item (or NULL) - virtual video::ITexture * getImage(ITextureSource *tsrc) const + virtual video::ITexture * getImage() const { return NULL; } // Shall return an image of the item without embellishments (or NULL) - virtual video::ITexture * getImageRaw(ITextureSource *tsrc) const - { return getImage(tsrc); } + virtual video::ITexture * getImageRaw() const + { return getImage(); } #endif // Shall return a text to show in the GUI virtual std::string getText() { return ""; } @@ -161,7 +161,7 @@ public: return new MaterialItem(m_gamedef, m_nodename, m_count); } #ifndef SERVER - video::ITexture * getImage(ITextureSource *tsrc) const; + video::ITexture * getImage() const; #endif std::string getText() { @@ -235,7 +235,7 @@ public: return new CraftItem(m_gamedef, m_subname, m_count); } #ifndef SERVER - video::ITexture * getImage(ITextureSource *tsrc) const; + video::ITexture * getImage() const; #endif std::string getText() { @@ -316,8 +316,8 @@ public: std::string getImageBasename() const; #ifndef SERVER - video::ITexture * getImage(ITextureSource *tsrc) const; - video::ITexture * getImageRaw(ITextureSource *tsrc) const; + video::ITexture * getImage() const; + video::ITexture * getImageRaw() const; #endif std::string getText() -- cgit v1.2.3