summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-08-20 18:16:54 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-08-20 18:16:54 +0200
commit7cf741abdeef7579ea3069ca42615e3f868c0194 (patch)
treed50a88d41bf43f0d46481782d50ab8623d287471 /src/ClientHandle.h
parentMerge pull request #2391 from SamJBarney/CropGrowthFix (diff)
parentFixed food drain bugs (diff)
downloadcuberite-7cf741abdeef7579ea3069ca42615e3f868c0194.tar
cuberite-7cf741abdeef7579ea3069ca42615e3f868c0194.tar.gz
cuberite-7cf741abdeef7579ea3069ca42615e3f868c0194.tar.bz2
cuberite-7cf741abdeef7579ea3069ca42615e3f868c0194.tar.lz
cuberite-7cf741abdeef7579ea3069ca42615e3f868c0194.tar.xz
cuberite-7cf741abdeef7579ea3069ca42615e3f868c0194.tar.zst
cuberite-7cf741abdeef7579ea3069ca42615e3f868c0194.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h
index a347732cd..b305648cb 100644
--- a/src/ClientHandle.h
+++ b/src/ClientHandle.h
@@ -321,7 +321,14 @@ public: // tolua_export
void HandlePlayerAbilities (bool a_CanFly, bool a_IsFlying, float FlyingSpeed, float WalkingSpeed);
void HandlePlayerLook (float a_Rotation, float a_Pitch, bool a_IsOnGround);
void HandlePlayerMoveLook (double a_PosX, double a_PosY, double a_PosZ, double a_Stance, float a_Rotation, float a_Pitch, bool a_IsOnGround); // While m_bPositionConfirmed (normal gameplay)
- void HandlePlayerPos (double a_PosX, double a_PosY, double a_PosZ, double a_Stance, bool a_IsOnGround);
+
+ /** Verifies and sets player position, performing relevant checks
+ Calls relevant methods to process movement related statistics
+ Requires state of previous position and on-ground status, so must be called when these are still intact
+ */
+ void HandlePlayerPos(double a_PosX, double a_PosY, double a_PosZ, double a_Stance, bool a_IsOnGround);
+
+
void HandlePluginMessage (const AString & a_Channel, const AString & a_Message);
void HandleRespawn (void);
void HandleRightClick (int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, const cItem & a_HeldItem);