summaryrefslogtreecommitdiffstats
path: root/source/Minecart.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-16 12:23:24 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-16 12:23:24 +0200
commit7f87d6c3d6a116742f25f1846d747a33afdc63f0 (patch)
treefdc0a24c2b6145c16a78612589cdb48533ac7e6c /source/Minecart.cpp
parentGeneration and simulation defaults (diff)
downloadcuberite-7f87d6c3d6a116742f25f1846d747a33afdc63f0.tar
cuberite-7f87d6c3d6a116742f25f1846d747a33afdc63f0.tar.gz
cuberite-7f87d6c3d6a116742f25f1846d747a33afdc63f0.tar.bz2
cuberite-7f87d6c3d6a116742f25f1846d747a33afdc63f0.tar.lz
cuberite-7f87d6c3d6a116742f25f1846d747a33afdc63f0.tar.xz
cuberite-7f87d6c3d6a116742f25f1846d747a33afdc63f0.tar.zst
cuberite-7f87d6c3d6a116742f25f1846d747a33afdc63f0.zip
Diffstat (limited to 'source/Minecart.cpp')
-rw-r--r--source/Minecart.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/source/Minecart.cpp b/source/Minecart.cpp
index cffa1b6e0..19ea861a1 100644
--- a/source/Minecart.cpp
+++ b/source/Minecart.cpp
@@ -44,6 +44,8 @@ void cMinecart::SpawnOn(cClientHandle & a_ClientHandle)
case mpNone: Type = 10; break;
case mpChest: Type = 11; break;
case mpFurnace: Type = 12; break;
+ case mpTNT: Type = 13; break;
+ case mpHopper: Type = 14; break;
default:
{
ASSERT(!"Unknown payload, cannot spawn on client");
@@ -162,3 +164,27 @@ void cMinecartWithFurnace::OnRightClicked(cPlayer & a_Player)
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// cMinecartWithTNT:
+
+cMinecartWithTNT::cMinecartWithTNT(double a_X, double a_Y, double a_Z) :
+ super(mpTNT, a_X, a_Y, a_Z)
+{
+}
+
+// TODO: Make it activate when passing over activator rail
+
+
+
+
+
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// cMinecartWithHopper:
+
+cMinecartWithHopper::cMinecartWithHopper(double a_X, double a_Y, double a_Z) :
+ super(mpHopper, a_X, a_Y, a_Z)
+{
+}
+
+// TODO: Make it suck up blocks and travel further than any other cart and physics and put and take blocks
+// AND AVARYTHING!! \ No newline at end of file