summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-16 02:22:41 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:46 +0200
commit6a417c538f0af9e611d6f94cfb12d36f51982db8 (patch)
tree1bb137c17d3ca90e7cacbf27f810f26c29f50712 /src/inventory.h
parent7fae32095a843662dad77bd580a6a11637a53fe8 (diff)
downloadminetest-6a417c538f0af9e611d6f94cfb12d36f51982db8.tar.gz
minetest-6a417c538f0af9e611d6f94cfb12d36f51982db8.tar.bz2
minetest-6a417c538f0af9e611d6f94cfb12d36f51982db8.zip
Remove burn time definitions from FurnaceNodeMetadata
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);