summaryrefslogtreecommitdiffstats
path: root/src/Entities/Floater.h
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-25 17:26:17 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-25 17:26:17 +0100
commit17a84111ceb1c1d28bc420eeae9262bc10b869b9 (patch)
tree0eabab76bc24bf4ca23832f4ae3468f9f3e8b005 /src/Entities/Floater.h
parentMerge pull request #469 from mc-server/Android_Update (diff)
downloadcuberite-17a84111ceb1c1d28bc420eeae9262bc10b869b9.tar
cuberite-17a84111ceb1c1d28bc420eeae9262bc10b869b9.tar.gz
cuberite-17a84111ceb1c1d28bc420eeae9262bc10b869b9.tar.bz2
cuberite-17a84111ceb1c1d28bc420eeae9262bc10b869b9.tar.lz
cuberite-17a84111ceb1c1d28bc420eeae9262bc10b869b9.tar.xz
cuberite-17a84111ceb1c1d28bc420eeae9262bc10b869b9.tar.zst
cuberite-17a84111ceb1c1d28bc420eeae9262bc10b869b9.zip
Diffstat (limited to 'src/Entities/Floater.h')
-rw-r--r--src/Entities/Floater.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/Entities/Floater.h b/src/Entities/Floater.h
index 4db94986c..4bbe3f352 100644
--- a/src/Entities/Floater.h
+++ b/src/Entities/Floater.h
@@ -19,13 +19,22 @@ public:
virtual void SpawnOn(cClientHandle & a_Client) override;
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
- bool CanPickup(void) const { return m_CanPickupItem; }
+ bool CanPickup(void) const { return m_CanPickupItem; }
+ int GetOwnerID(void) const { return m_PlayerID; }
+ int GetAttachedMobID(void) const { return m_AttachedMobID; }
protected:
- Vector3d m_Speed;
+ // Position
Vector3d m_ParticlePos;
+
+ // Bool needed to check if you can get a fish.
+ bool m_CanPickupItem;
+
+ // Countdown times
int m_PickupCountDown;
- int m_PlayerID;
int m_CountDownTime;
- bool m_CanPickupItem;
+
+ // Entity IDs
+ int m_PlayerID;
+ int m_AttachedMobID;
} ; \ No newline at end of file