blob: 59402393f91827faef210de412ecd3734aaa2a75 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#pragma once
#include "Entity.h"
// tolua_begin
class cFloater :
public cEntity
{
typedef cEntity super;
public:
// tolua_end
CLASS_PROTODEF(cFloater)
cFloater(double a_X, double a_Y, double a_Z, Vector3d a_Speed, UInt32 a_PlayerID, int a_CountDownTime);
virtual void SpawnOn(cClientHandle & a_Client) override;
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
// 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; }
// tolua_end
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
int m_PickupCountDown;
int m_CountDownTime;
// Entity IDs
UInt32 m_PlayerID;
UInt32 m_AttachedMobID;
} ; // tolua_export
|