diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-12 14:28:37 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-12 14:28:37 +0100 |
commit | ec6c510bd404524dc63d130b41329fb365423b4b (patch) | |
tree | d2b8a8bea0930b7004575342d1036519879c8688 /src/Entities/Minecart.h | |
parent | Merge pull request #529 from mc-server/derpstonerefactor (diff) | |
download | cuberite-ec6c510bd404524dc63d130b41329fb365423b4b.tar cuberite-ec6c510bd404524dc63d130b41329fb365423b4b.tar.gz cuberite-ec6c510bd404524dc63d130b41329fb365423b4b.tar.bz2 cuberite-ec6c510bd404524dc63d130b41329fb365423b4b.tar.lz cuberite-ec6c510bd404524dc63d130b41329fb365423b4b.tar.xz cuberite-ec6c510bd404524dc63d130b41329fb365423b4b.tar.zst cuberite-ec6c510bd404524dc63d130b41329fb365423b4b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Minecart.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Entities/Minecart.h b/src/Entities/Minecart.h index b1b48be4e..e353e18d9 100644 --- a/src/Entities/Minecart.h +++ b/src/Entities/Minecart.h @@ -53,15 +53,16 @@ public: virtual void DoTakeDamage(TakeDamageInfo & TDI) override; int LastDamage(void) const { return m_LastDamage; } - void HandleRailPhysics(float a_Dt, cChunk & a_Chunk); ePayload GetPayload(void) const { return m_Payload; } protected: ePayload m_Payload; + int m_LastDamage; cMinecart(ePayload a_Payload, double a_X, double a_Y, double a_Z); - - int m_LastDamage; + void HandleRailPhysics(NIBBLETYPE a_RailMeta); + void HandlePoweredRailPhysics(NIBBLETYPE a_RailMeta); + void SnapToRail(NIBBLETYPE a_RailMeta); } ; |