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:
|
2014-07-17 16:15:34 -04:00
|
|
|
// tolua_end
|
2014-02-03 17:51:26 -05:00
|
|
|
|
2014-07-22 18:36:13 -04:00
|
|
|
CLASS_PROTODEF(cFloater)
|
2014-02-03 17:51:26 -05:00
|
|
|
|
2013-12-22 08:48:22 -05:00
|
|
|
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
|
2013-12-25 11:26:17 -05:00
|
|
|
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:
|
2013-12-25 11:26:17 -05:00
|
|
|
// Position
|
2013-12-22 08:48:22 -05:00
|
|
|
Vector3d m_ParticlePos;
|
2013-12-25 11:26:17 -05:00
|
|
|
|
|
|
|
// 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;
|
2013-12-22 08:48:22 -05:00
|
|
|
int m_CountDownTime;
|
2013-12-25 11:26:17 -05:00
|
|
|
|
|
|
|
// Entity IDs
|
|
|
|
int m_PlayerID;
|
|
|
|
int m_AttachedMobID;
|
2014-07-17 16:15:34 -04:00
|
|
|
} ; // tolua_export
|