From 5fc791ac9a15ea6f234ca2d23041c83679255746 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 13 Nov 2011 16:38:14 +0200 Subject: Move tool stuff to tool.{h,cpp} --- src/inventory.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/inventory.cpp') diff --git a/src/inventory.cpp b/src/inventory.cpp index ec1a81b18..ea5b69636 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -34,6 +34,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "player.h" #include "log.h" #include "mapnode_contentfeatures.h" +#include "tool.h" /* InventoryItem @@ -166,6 +167,15 @@ InventoryItem *MaterialItem::createCookResult() const return item_material_create_cook_result(m_content); } +/* + ToolItem +*/ + +std::string ToolItem::getImageBasename() const +{ + return tool_get_imagename(m_toolname); +} + /* CraftItem */ -- cgit v1.2.3