summaryrefslogtreecommitdiffstats
path: root/source/items/Item.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/items/Item.h')
-rw-r--r--source/items/Item.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/items/Item.h b/source/items/Item.h
index a465ae80a..5fe260fd8 100644
--- a/source/items/Item.h
+++ b/source/items/Item.h
@@ -1,10 +1,19 @@
+
#pragma once
#include "../Defines.h"
+
+
+
+
+// fwd:
class cWorld;
class cPlayer;
+
+
+
class cItemHandler
{
public:
@@ -13,6 +22,9 @@ public:
virtual bool OnDiggingBlock(cWorld *a_World, cPlayer *a_Player, cItem *a_Item, int a_X, int a_Y, int a_Z, char a_Dir);
virtual void OnBlockDestroyed(cWorld *a_World, cPlayer *a_Player, cItem *a_Item, int a_X, int a_Y, int a_Z);
virtual void OnFoodEaten(cWorld *a_World, cPlayer *a_Player, cItem *a_Item);
+
+ /// Returns the maximum stack size for a given item
+ virtual char GetMaxStackSize(void);
struct FoodInfo
{