aboutsummaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-13 16:38:14 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:41 +0200
commit5fc791ac9a15ea6f234ca2d23041c83679255746 (patch)
tree079a5b2d0b2131aa545a6e0f13d3c9b362382168 /src/inventory.cpp
parent72884bf85fe71ddab69cdb94262d8c650359f265 (diff)
downloadminetest-5fc791ac9a15ea6f234ca2d23041c83679255746.tar.gz
minetest-5fc791ac9a15ea6f234ca2d23041c83679255746.tar.bz2
minetest-5fc791ac9a15ea6f234ca2d23041c83679255746.zip
Move tool stuff to tool.{h,cpp}
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp10
1 files changed, 10 insertions, 0 deletions
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
@@ -167,6 +168,15 @@ InventoryItem *MaterialItem::createCookResult() const
}
/*
+ ToolItem
+*/
+
+std::string ToolItem::getImageBasename() const
+{
+ return tool_get_imagename(m_toolname);
+}
+
+/*
CraftItem
*/