summaryrefslogtreecommitdiffstats
path: root/source/Minecart.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-16 21:19:46 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-16 21:19:46 +0200
commit4face38fdc6872f7e1ad26c28baa52836a2e709f (patch)
tree9ee407dd1d3ab05c100888d91318950e8c5e968b /source/Minecart.cpp
parentReplaced E_ENTITY_TYPE_XXX with cMonster::mtXXX. (diff)
parentAnother compile fix (diff)
downloadcuberite-4face38fdc6872f7e1ad26c28baa52836a2e709f.tar
cuberite-4face38fdc6872f7e1ad26c28baa52836a2e709f.tar.gz
cuberite-4face38fdc6872f7e1ad26c28baa52836a2e709f.tar.bz2
cuberite-4face38fdc6872f7e1ad26c28baa52836a2e709f.tar.lz
cuberite-4face38fdc6872f7e1ad26c28baa52836a2e709f.tar.xz
cuberite-4face38fdc6872f7e1ad26c28baa52836a2e709f.tar.zst
cuberite-4face38fdc6872f7e1ad26c28baa52836a2e709f.zip
Diffstat (limited to 'source/Minecart.cpp')
-rw-r--r--source/Minecart.cpp34
1 files changed, 30 insertions, 4 deletions
diff --git a/source/Minecart.cpp b/source/Minecart.cpp
index cffa1b6e0..8b9c201ad 100644
--- a/source/Minecart.cpp
+++ b/source/Minecart.cpp
@@ -39,11 +39,13 @@ bool cMinecart::Initialize(cWorld * a_World)
void cMinecart::SpawnOn(cClientHandle & a_ClientHandle)
{
char Type = 0;
- switch (m_Payload)
+ switch (m_Payload) //Wiki.vg is outdated on this!!
{
- case mpNone: Type = 10; break;
- case mpChest: Type = 11; break;
- case mpFurnace: Type = 12; break;
+ case mpNone: Type = 9; break; //?
+ case mpChest: Type = 10; break;
+ case mpFurnace: Type = 11; break; //?
+ case mpTNT: Type = 12; break; //?
+ case mpHopper: Type = 13; 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