summaryrefslogtreecommitdiffstats
path: root/src/Entities/Floater.h
diff options
context:
space:
mode:
authortycho <tycho@hanoverdesktop>2013-12-20 01:13:04 +0100
committertycho <tycho@hanoverdesktop>2013-12-20 01:13:04 +0100
commit7735a956f06821e30116df808f94801b5fbd19e6 (patch)
tree6c9c9c0b7484d1dd7343ba05c9b54b098e8104fd /src/Entities/Floater.h
parentfixed D9025 (diff)
parentMerge pull request #450 from mc-server/redstonefixes (diff)
downloadcuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar
cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.gz
cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.bz2
cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.lz
cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.xz
cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.zst
cuberite-7735a956f06821e30116df808f94801b5fbd19e6.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