diff options
author | Mattes D <github@xoft.cz> | 2014-01-17 11:27:56 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-01-17 11:27:56 +0100 |
commit | 79c1f6f43844a85abac53f4c61bff398b88b669d (patch) | |
tree | f938528aed92ffdbea0c5d15f84f738c65c9d8d4 /src/Entities/Minecart.h | |
parent | Fixed SIGABRT_COMPAT on other architectures. (diff) | |
parent | Changed GetContent function. (diff) | |
download | cuberite-79c1f6f43844a85abac53f4c61bff398b88b669d.tar cuberite-79c1f6f43844a85abac53f4c61bff398b88b669d.tar.gz cuberite-79c1f6f43844a85abac53f4c61bff398b88b669d.tar.bz2 cuberite-79c1f6f43844a85abac53f4c61bff398b88b669d.tar.lz cuberite-79c1f6f43844a85abac53f4c61bff398b88b669d.tar.xz cuberite-79c1f6f43844a85abac53f4c61bff398b88b669d.tar.zst cuberite-79c1f6f43844a85abac53f4c61bff398b88b669d.zip |
Diffstat (limited to 'src/Entities/Minecart.h')
-rw-r--r-- | src/Entities/Minecart.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/Entities/Minecart.h b/src/Entities/Minecart.h index 1ebddfdda..874d0204e 100644 --- a/src/Entities/Minecart.h +++ b/src/Entities/Minecart.h @@ -90,18 +90,24 @@ protected: -class cEmptyMinecart : +class cRideableMinecart : public cMinecart { typedef cMinecart super; public: - CLASS_PROTODEF(cEmptyMinecart); + CLASS_PROTODEF(cRideableMinecart); - cEmptyMinecart(double a_X, double a_Y, double a_Z); + cRideableMinecart(double a_X, double a_Y, double a_Z, const cItem & a_Content, int a_Height); + const cItem & GetContent(void) const {return m_Content;} + int GetBlockHeight(void) const {return m_Height;} // cEntity overrides: virtual void OnRightClicked(cPlayer & a_Player) override; +protected: + + cItem m_Content; + int m_Height; } ; |