summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-13 12:49:52 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-13 12:49:52 +0000
commit10b881f997384378a299bff358716db5183b65a5 (patch)
tree2231d834a69c1db68980c1ccefdc6586df351fc0 /src/inventory.h
parentda5a71f65682dbb3f830be4d5ffcd0046aa7b7ce (diff)
downloadmana-client-10b881f997384378a299bff358716db5183b65a5.tar.gz
mana-client-10b881f997384378a299bff358716db5183b65a5.tar.bz2
mana-client-10b881f997384378a299bff358716db5183b65a5.tar.xz
mana-client-10b881f997384378a299bff358716db5183b65a5.zip
Huge header cleanup to reduce dependencies and compile time.
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/inventory.h b/src/inventory.h
index c31f4fd4..461a4a50 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -24,7 +24,7 @@
#ifndef _INVENTORY_H
#define _INVENTORY_H
-#include "item.h"
+class Item;
#define INVENTORY_SIZE 100
@@ -94,26 +94,9 @@ class Inventory
int getLastUsedSlot();
protected:
- Item items[INVENTORY_SIZE]; /**< The holder of items */
+ Item *items; /**< The holder of items */
};
-inline Item* Inventory::getItem(int index)
-{
- return &items[index];
-}
-
-inline void Inventory::addItem(int id, int quantity, bool equipment)
-{
- addItem(getFreeSlot(), id, quantity, equipment);
-}
-
-inline void Inventory::addItem(int index, int id, int quantity, bool equipment)
-{
- items[index].setId(id);
- items[index].increaseQuantity(quantity);
- items[index].setEquipment(equipment);
-}
-
extern Inventory *inventory;
#endif