1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-04 08:50:22 +02:00

Move tool stuff to tool.{h,cpp}

This commit is contained in:
Perttu Ahola
2011-11-13 16:38:14 +02:00
parent 72884bf85f
commit 5fc791ac9a
6 changed files with 171 additions and 104 deletions

View File

@ -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
*/