diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-07-21 22:25:37 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-08-20 17:26:42 +0200 |
commit | de2cce9b79ab60427daa86dcd1da99db7d7ea161 (patch) | |
tree | d50a88d41bf43f0d46481782d50ab8623d287471 /src/ClientHandle.h | |
parent | Merge pull request #2391 from SamJBarney/CropGrowthFix (diff) | |
download | cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.tar cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.tar.gz cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.tar.bz2 cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.tar.lz cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.tar.xz cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.tar.zst cuberite-de2cce9b79ab60427daa86dcd1da99db7d7ea161.zip |
Diffstat (limited to 'src/ClientHandle.h')
-rw-r--r-- | src/ClientHandle.h | 9 |
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); |