summaryrefslogtreecommitdiffstats
path: root/src/Entities/Minecart.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-12 14:28:37 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-12 14:28:37 +0100
commitec6c510bd404524dc63d130b41329fb365423b4b (patch)
treed2b8a8bea0930b7004575342d1036519879c8688 /src/Entities/Minecart.h
parentMerge pull request #529 from mc-server/derpstonerefactor (diff)
downloadcuberite-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.h7
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);
} ;