summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/inventory.h b/src/inventory.h
index ee8d072a..008b7ec4 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -24,8 +24,12 @@
class Item;
+#ifdef EATHENA_SUPPORT
#define INVENTORY_SIZE 102
#define STORAGE_SIZE 301
+#else
+#define INVENTORY_SIZE 50
+#endif
class Inventory
{
@@ -33,7 +37,7 @@ class Inventory
/**
* Constructor.
*/
- Inventory(int size, int offset);
+ Inventory(int size, int offset = 0);
/**
* Destructor.
@@ -61,12 +65,12 @@ class Inventory
/**
* Adds a new item in a free slot.
*/
- void addItem(int id, int quantity, bool equipment);
+ void addItem(int id, int quantity, bool equipment = false);
/**
* Sets the item at the given position.
*/
- void setItem(int index, int id, int quantity, bool equipment);
+ void setItem(int index, int id, int quantity, bool equipment = false);
/**
* Remove a item from the inventory.
@@ -108,6 +112,7 @@ class 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 */