summaryrefslogtreecommitdiffstats
path: root/src/Entities/Minecart.h
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-01-15 14:38:54 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-01-15 14:38:54 +0100
commit72dcd70f222362b161649810146c8d27162cdb84 (patch)
tree3a2cdd557fc8d2f3709c14cfcee33b380d3e46c0 /src/Entities/Minecart.h
parentFirst implementation for furnace minecarts. (diff)
downloadcuberite-72dcd70f222362b161649810146c8d27162cdb84.tar
cuberite-72dcd70f222362b161649810146c8d27162cdb84.tar.gz
cuberite-72dcd70f222362b161649810146c8d27162cdb84.tar.bz2
cuberite-72dcd70f222362b161649810146c8d27162cdb84.tar.lz
cuberite-72dcd70f222362b161649810146c8d27162cdb84.tar.xz
cuberite-72dcd70f222362b161649810146c8d27162cdb84.tar.zst
cuberite-72dcd70f222362b161649810146c8d27162cdb84.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Minecart.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Entities/Minecart.h b/src/Entities/Minecart.h
index e30f50edc..1ebddfdda 100644
--- a/src/Entities/Minecart.h
+++ b/src/Entities/Minecart.h
@@ -152,10 +152,17 @@ public:
// cEntity overrides:
virtual void OnRightClicked(cPlayer & a_Player) override;
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
- bool IsFueled (void) const { return m_IsFueled; }
+
+ // Set functions.
+ void SetIsFueled(bool a_IsFueled, int a_FueledTimeLeft = -1) {m_IsFueled = a_IsFueled; m_FueledTimeLeft = a_FueledTimeLeft;}
+
+ // Get functions.
+ int GetFueledTimeLeft(void) const {return m_FueledTimeLeft; }
+ bool IsFueled (void) const {return m_IsFueled;}
private:
+ int m_FueledTimeLeft;
bool m_IsFueled;
} ;