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

47 lines
864 B
C
Raw Normal View History

2013-12-19 11:32:06 -05:00
#pragma once
#include "Entity.h"
2014-01-18 18:04:46 -05:00
// tolua_begin
2013-12-19 11:32:06 -05:00
class cFloater :
public cEntity
{
2014-03-09 13:51:02 -04:00
typedef cEntity super;
2013-12-19 11:32:06 -05:00
public:
// tolua_end
CLASS_PROTODEF(cFloater)
cFloater(double a_X, double a_Y, double a_Z, Vector3d a_Speed, int a_PlayerID, int a_CountDownTime);
2013-12-19 11:32:06 -05:00
virtual void SpawnOn(cClientHandle & a_Client) override;
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
2014-01-18 18:04:46 -05:00
// tolua_begin
bool CanPickup(void) const { return m_CanPickupItem; }
int GetOwnerID(void) const { return m_PlayerID; }
int GetAttachedMobID(void) const { return m_AttachedMobID; }
2014-01-18 18:04:46 -05:00
// tolua_end
2013-12-19 11:32:06 -05:00
protected:
// Position
Vector3d m_ParticlePos;
// Bool needed to check if you can get a fish.
bool m_CanPickupItem;
// Countdown times
2013-12-19 11:32:06 -05:00
int m_PickupCountDown;
int m_CountDownTime;
// Entity IDs
int m_PlayerID;
int m_AttachedMobID;
} ; // tolua_export