1
0
Fork 0
cuberite-2a/src/Entities/Floater.h

52 lines
1.0 KiB
C
Raw Normal View History

2013-12-19 16:32:06 +00:00
#pragma once
#include "Entity.h"
2014-01-18 23:04:46 +00:00
// tolua_begin
2013-12-19 16:32:06 +00:00
class cFloater :
public cEntity
{
// tolua_end
2020-04-13 16:38:06 +00:00
using Super = cEntity;
public: // tolua_export
CLASS_PROTODEF(cFloater)
cFloater(Vector3d a_Pos, Vector3d a_Speed, UInt32 a_PlayerID, int a_CountDownTime);
2013-12-19 16:32:06 +00:00
virtual void SpawnOn(cClientHandle & a_Client) override;
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
2016-02-05 21:45:45 +00:00
2014-01-18 23:04:46 +00:00
// tolua_begin
bool CanPickup(void) const { return m_CanPickupItem; }
UInt32 GetOwnerID(void) const { return m_PlayerID; }
UInt32 GetAttachedMobID(void) const { return m_AttachedMobID; }
Vector3d GetBitePos(void) const { return m_BitePos; }
2014-01-18 23:04:46 +00:00
// tolua_end
2013-12-19 16:32:06 +00:00
protected:
// Position
Vector3d m_ParticlePos;
// Position just before the floater gets pulled under by a fish
Vector3d m_BitePos;
// Bool needed to check if you can get a fish.
bool m_CanPickupItem;
// Countdown times
2013-12-19 16:32:06 +00:00
int m_PickupCountDown;
int m_CountDownTime;
// Entity IDs
UInt32 m_PlayerID;
UInt32 m_AttachedMobID;
} ; // tolua_export