summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-25 11:54:36 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-25 11:54:36 +0200
commitfb9a00a64ed69d22a1c181bb0b3af99f8686c4dd (patch)
tree1529d406bbbc97b1f1da6e2d0d1cccc7f1be5d9c /source/ClientHandle.h
parentSockets are now owned by SocketThreads instead of ClientHandle (FS #246 and FS #247) (diff)
downloadcuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar
cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.gz
cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.bz2
cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.lz
cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.xz
cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.tar.zst
cuberite-fb9a00a64ed69d22a1c181bb0b3af99f8686c4dd.zip
Diffstat (limited to 'source/ClientHandle.h')
-rw-r--r--source/ClientHandle.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/ClientHandle.h b/source/ClientHandle.h
index 8beecd7e4..1e627a017 100644
--- a/source/ClientHandle.h
+++ b/source/ClientHandle.h
@@ -101,6 +101,7 @@ public:
void SendPlayerSpawn (const cPlayer & a_Player);
void SendRespawn (void);
void SendSoundEffect (const AString & a_SoundName, int a_SrcX, int a_SrcY, int a_SrcZ, float a_Volume, float a_Pitch); // a_Src coords are Block * 8
+ void SendBlockBreakAnim (int a_entityID, int a_blockX, int a_blockY, int a_blockZ, char a_stage);
void SendSpawnMob (const cMonster & a_Mob);
void SendTeleportEntity (const cEntity & a_Entity);
void SendThunderbolt (int a_BlockX, int a_BlockY, int a_BlockZ);
@@ -204,6 +205,13 @@ private:
long long m_PingStartTime;
long long m_LastPingTime;
static const unsigned short PING_TIME_MS = 1000; //minecraft sends 1 per 20 ticks (1 second or every 1000 ms)
+
+ // Values required for block dig animation
+ int m_BlockDigAnim; // Current stage of the animation; -1 if not digging
+ int m_BlockDigAnimSpeed; // Current speed of the animation (units ???)
+ int m_BlockDigX;
+ int m_BlockDigY;
+ int m_BlockDigZ;
enum eState
{