From 1af1d9dfbf2a5f71acc4341394b417dd31506048 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Fri, 29 Dec 2006 14:51:48 +0000 Subject: Useless and unused, so removed. --- ChangeLog | 1 + src/itemhandler.cpp | 29 --------------------------- src/itemhandler.h | 56 ----------------------------------------------------- 3 files changed, 1 insertion(+), 85 deletions(-) delete mode 100644 src/itemhandler.cpp delete mode 100644 src/itemhandler.h diff --git a/ChangeLog b/ChangeLog index 63e7ad53..a869fde6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -56,6 +56,7 @@ * src/main.cpp, src/Makefile.am: Created main files in both src/account-server and src/game-server. Modified makefiles to produce two server binaries. + * src/itemhandler.h, src/itemhandler.cpp: Removed: useless and unused. 2006-12-29 Philipp Sehmisch diff --git a/src/itemhandler.cpp b/src/itemhandler.cpp deleted file mode 100644 index 9b918489..00000000 --- a/src/itemhandler.cpp +++ /dev/null @@ -1,29 +0,0 @@ -/* - * The Mana World - * Copyright 2004 The Mana World Development Team - * - * This file is part of The Mana World. - * - * The Mana World is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * any later version. - * - * The Mana World is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with The Mana World; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * $Id$ - */ - -#include "itemhandler.h" - -#include "storage.h" - -#include "utils/logger.h" - diff --git a/src/itemhandler.h b/src/itemhandler.h deleted file mode 100644 index 796234b1..00000000 --- a/src/itemhandler.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * The Mana World - * Copyright 2004 The Mana World Development Team - * - * This file is part of The Mana World. - * - * The Mana World is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * any later version. - * - * The Mana World is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with The Mana World; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * $Id$ - */ - -#ifndef _TMW_ITEMHANDLER_H -#define _TMW_ITEMHANDLER_H - -#include "item.h" -#include "mapcomposite.h" - -/** - * The Item Handler loads the item reference database - * and also manage everyone items interaction with other objects - * (including other players) and the world. - */ -class ItemHandler -{ - public: - ItemHandler(std::string itemReferenceFile); - - /** - * Drop items on the map. - */ - bool - drop(BeingPtr beingPtr, unsigned int itemId, unsigned short amount); - - /** - * Pick an item on the ground - */ - bool - getItem(BeingPtr beingPtr, ItemPtr itemPtr); - - private: - std::pair ItemReference; -}; - -#endif -- cgit v1.2.3-70-g09d2