summaryrefslogtreecommitdiffstats
path: root/src/Entities/Minecart.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-18 21:58:26 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-18 21:58:26 +0100
commitddd03a050bfaaffef9abd573fe6c8e1af3948048 (patch)
tree816957f7e96df52e6d1a39d64b2dfac1fbe1f73b /src/Entities/Minecart.h
parentFixed block break packet number (diff)
downloadcuberite-ddd03a050bfaaffef9abd573fe6c8e1af3948048.tar
cuberite-ddd03a050bfaaffef9abd573fe6c8e1af3948048.tar.gz
cuberite-ddd03a050bfaaffef9abd573fe6c8e1af3948048.tar.bz2
cuberite-ddd03a050bfaaffef9abd573fe6c8e1af3948048.tar.lz
cuberite-ddd03a050bfaaffef9abd573fe6c8e1af3948048.tar.xz
cuberite-ddd03a050bfaaffef9abd573fe6c8e1af3948048.tar.zst
cuberite-ddd03a050bfaaffef9abd573fe6c8e1af3948048.zip
Diffstat (limited to 'src/Entities/Minecart.h')
-rw-r--r--src/Entities/Minecart.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Entities/Minecart.h b/src/Entities/Minecart.h
index 1ebddfdda..1c3ea3220 100644
--- a/src/Entities/Minecart.h
+++ b/src/Entities/Minecart.h
@@ -79,10 +79,13 @@ protected:
*/
void HandleDetectorRailPhysics(NIBBLETYPE a_RailMeta, float a_Dt);
- /** Snaps a minecart to a rail's axis, resetting its speed */
+ /** Snaps a mincecart to a rail's axis, resetting its speed
+ For curved rails, it changes the cart's direction as well as snapping it to axis */
void SnapToRail(NIBBLETYPE a_RailMeta);
- /** Tests is a solid block is in front of a cart, and stops the cart (and returns true) if so; returns false if no obstruction*/
+ /** Tests if a solid block is in front of a cart, and stops the cart (and returns true) if so; returns false if no obstruction */
bool TestBlockCollision(NIBBLETYPE a_RailMeta);
+ /** Tests if this mincecart's bounding box is intersecting another entity's bounding box (collision) and pushes mincecart away */
+ bool TestEntityCollision(NIBBLETYPE a_RailMeta);
} ;