diff options
author | Mattes D <github@xoft.cz> | 2014-01-15 15:45:34 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-01-15 15:45:34 +0100 |
commit | 0571b1a7e6423902284c54aeab2658517dce5e29 (patch) | |
tree | e73549cf547185ecfa25c43d2e4452972f3b8d61 /src/Entities/Minecart.h | |
parent | Updated Core! ±±±___±±± (diff) | |
parent | Furnace minecarts now stop being active after a while. (diff) | |
download | cuberite-0571b1a7e6423902284c54aeab2658517dce5e29.tar cuberite-0571b1a7e6423902284c54aeab2658517dce5e29.tar.gz cuberite-0571b1a7e6423902284c54aeab2658517dce5e29.tar.bz2 cuberite-0571b1a7e6423902284c54aeab2658517dce5e29.tar.lz cuberite-0571b1a7e6423902284c54aeab2658517dce5e29.tar.xz cuberite-0571b1a7e6423902284c54aeab2658517dce5e29.tar.zst cuberite-0571b1a7e6423902284c54aeab2658517dce5e29.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Minecart.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Entities/Minecart.h b/src/Entities/Minecart.h index feb700b71..1ebddfdda 100644 --- a/src/Entities/Minecart.h +++ b/src/Entities/Minecart.h @@ -151,10 +151,18 @@ public: // cEntity overrides: virtual void OnRightClicked(cPlayer & a_Player) override; - bool IsFueled (void) const { return m_IsFueled; } + virtual void Tick(float a_Dt, cChunk & a_Chunk) override; + + // 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; } ; |