summaryrefslogtreecommitdiffstats
path: root/src/Entities/Floater.h
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-19 17:32:06 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-19 17:32:06 +0100
commit86bfed735e28fe86ec40e89e59eb868c4a0a9b19 (patch)
tree68a11fb935be0f3ab96dfafbaefa942378a5e532 /src/Entities/Floater.h
parentUpdate Contributing.md (diff)
downloadcuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.tar
cuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.tar.gz
cuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.tar.bz2
cuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.tar.lz
cuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.tar.xz
cuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.tar.zst
cuberite-86bfed735e28fe86ec40e89e59eb868c4a0a9b19.zip
Diffstat (limited to '')
-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