summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/inventory.h b/src/inventory.h
index 5401ff1b9..b9de48f9a 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -106,10 +106,12 @@ public:
// Whether it can be cooked
virtual bool isCookable() const {return false;}
- // Time of cooking
- virtual float getCookTime(){return 3.0;}
// Result of cooking (can randomize)
virtual InventoryItem *createCookResult() const {return NULL;}
+ // Time of cooking
+ virtual float getCookTime() const {return 3.0;}
+ // Whether it can be burned (<0 = cannot be burned)
+ virtual float getBurnTime() const {return -1;}
// Eat, press, activate, whatever.
// Called when item is right-clicked when lying on ground.
@@ -180,6 +182,8 @@ public:
*/
bool isCookable() const;
InventoryItem *createCookResult() const;
+ float getCookTime() const;
+ float getBurnTime() const;
/*
Special methods
*/
@@ -258,6 +262,8 @@ public:
bool isCookable() const;
InventoryItem *createCookResult() const;
+ float getCookTime() const;
+ float getBurnTime() const;
bool use(ServerEnvironment *env, ServerActiveObject *user);