summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorLloyd Bryant <lloyd_bryant@netzero.net>2008-09-12 17:12:24 +0000
committerLloyd Bryant <lloyd_bryant@netzero.net>2008-09-12 17:12:24 +0000
commit8551f4a5c5e1feddc4f2868488bdefeae85aa26d (patch)
tree39b91c9d7124c1c03e954ceb9b3434adcaf022ce /src/inventory.h
parenta9595f435664df56948ae70e954cf72143ddcfa1 (diff)
downloadmana-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.tar.gz
mana-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.tar.bz2
mana-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.tar.xz
mana-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.zip
Fixed /where, added /cast for heal and gather, some changes to inventory to support storage
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/inventory.h b/src/inventory.h
index 2e0dd792..42b0d86a 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -26,15 +26,13 @@
class Item;
-#define INVENTORY_SIZE 102
-
class Inventory
{
public:
/**
* Constructor.
*/
- Inventory();
+ Inventory(int size);
/**
* Destructor.
@@ -42,6 +40,11 @@ class Inventory
~Inventory();
/**
+ * Returns the size that this instance is configured for
+ */
+ int getSize() { return mSize; }
+
+ /**
* Returns the item at the specified index.
*/
Item* getItem(int index) const;
@@ -101,6 +104,7 @@ class Inventory
protected:
Item **mItems; /**< The holder of items */
+ int mSize; /**< The max number of inventory items */
};
#endif