From 4f02ad59df9ee3314fb0d429a031ecbfa3206e3a Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 27 Mar 2009 23:25:43 +0100 Subject: Moved the inventory and storage offset handling into netcode No need to complicate the item containers and inventory classes with a silly offset used by the eAthena server. Also fixed the logToStandardOut option by reading it from the config after the configuration has been initialized. --- src/inventory.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/inventory.h') diff --git a/src/inventory.h b/src/inventory.h index 008b7ec4..07a9276e 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -19,8 +19,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _INVENTORY_H -#define _INVENTORY_H +#ifndef INVENTORY_H +#define INVENTORY_H class Item; @@ -37,7 +37,7 @@ class Inventory /** * Constructor. */ - Inventory(int size, int offset = 0); + Inventory(int size); /** * Destructor. @@ -107,16 +107,11 @@ class Inventory */ int getLastUsedSlot() const; - /** - * Returns the number of slots available in the inventory. - */ - int getInventorySize() const; - static const int NO_SLOT_INDEX = -1; /**< Slot has no index. */ + protected: Item **mItems; /**< The holder of items */ int mSize; /**< The max number of inventory items */ - int mOffset; /**< Offset used by the inventory */ }; #endif -- cgit v1.2.3-60-g2f50