summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/inventory.h b/src/inventory.h
index 0cbd97abc..d110f92c0 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -72,6 +72,7 @@ public:
{
m_count = count;
}
+ // This should return something else for stackable items
virtual u16 freeSpace()
{
return 0;
@@ -87,6 +88,14 @@ public:
m_count -= count;
}
+ /*
+ Other properties
+ */
+ // Time of cooking
+ virtual float getCookTime(){return 3.0;}
+ // Result of cooking
+ virtual InventoryItem *createCookResult(){return NULL;}
+
protected:
u16 m_count;
};
@@ -149,6 +158,10 @@ public:
return QUANTITY_ITEM_MAX_COUNT - m_count;
}
/*
+ Other properties
+ */
+ InventoryItem *createCookResult();
+ /*
Special methods
*/
u8 getMaterial()
@@ -428,6 +441,7 @@ public:
u32 getSize();
// Count used slots
u32 getUsedSlots();
+ u32 getFreeSlots();
// Get pointer to item
InventoryItem * getItem(u32 i);