summaryrefslogtreecommitdiffstats
path: root/src/Entities/Floater.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-19 22:51:21 +0100
committerMattes D <github@xoft.cz>2013-12-19 22:51:21 +0100
commit03ec64aee153a4c217f0794e9310d80eda7629e6 (patch)
treecb5f0e532d5bcfc25324207f0c088507f6b6c6bc /src/Entities/Floater.h
parentMerge pull request #448 from mc-server/testbranch (diff)
parentFixed #include in Floater.cpp. (diff)
downloadcuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.tar
cuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.tar.gz
cuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.tar.bz2
cuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.tar.lz
cuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.tar.xz
cuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.tar.zst
cuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.zip
Diffstat (limited to 'src/Entities/Floater.h')
-rw-r--r--src/Entities/Floater.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Entities/Floater.h b/src/Entities/Floater.h
new file mode 100644
index 000000000..9bc5039f8
--- /dev/null
+++ b/src/Entities/Floater.h
@@ -0,0 +1,29 @@
+
+#pragma once
+
+#include "Entity.h"
+
+
+
+
+
+class cFloater :
+ public cEntity
+{
+ typedef cFloater super;
+
+public:
+
+ cFloater(double a_X, double a_Y, double a_Z, Vector3d a_Speed, int a_PlayerID);
+
+ virtual void SpawnOn(cClientHandle & a_Client) override;
+ virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
+
+ bool CanPickup(void) const { return m_CanPickupItem; }
+
+protected:
+ Vector3d m_Speed;
+ int m_PickupCountDown;
+ int m_PlayerID;
+ bool m_CanPickupItem;
+} ; \ No newline at end of file