summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol16x.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-08 14:59:15 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-08 14:59:15 +0200
commit791bf732fd490700748f798c617ecac1af152cd4 (patch)
tree2ca9be2cebeeb560b60c108959e805126d3173ed /source/Protocol/Protocol16x.cpp
parentPickups have an initial health of 5 (diff)
downloadcuberite-791bf732fd490700748f798c617ecac1af152cd4.tar
cuberite-791bf732fd490700748f798c617ecac1af152cd4.tar.gz
cuberite-791bf732fd490700748f798c617ecac1af152cd4.tar.bz2
cuberite-791bf732fd490700748f798c617ecac1af152cd4.tar.lz
cuberite-791bf732fd490700748f798c617ecac1af152cd4.tar.xz
cuberite-791bf732fd490700748f798c617ecac1af152cd4.tar.zst
cuberite-791bf732fd490700748f798c617ecac1af152cd4.zip
Diffstat (limited to '')
-rw-r--r--source/Protocol/Protocol16x.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/source/Protocol/Protocol16x.cpp b/source/Protocol/Protocol16x.cpp
index a4572977d..7036dfbca 100644
--- a/source/Protocol/Protocol16x.cpp
+++ b/source/Protocol/Protocol16x.cpp
@@ -5,6 +5,8 @@
Implements the 1.6.x protocol classes:
- cProtocol161
- release 1.6.1 protocol (#73)
+ - cProtocol162
+ - release 1.6.2 protocol (#74)
(others may be added later in the future for the 1.6 release series)
*/
@@ -48,6 +50,8 @@ enum
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// cProtocol161:
cProtocol161::cProtocol161(cClientHandle * a_Client) :
super(a_Client)
@@ -200,3 +204,31 @@ int cProtocol161::ParsePacket(unsigned char a_PacketType)
+
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// cProtocol162:
+
+cProtocol162::cProtocol162(cClientHandle * a_Client) :
+ super(a_Client)
+{
+}
+
+
+
+
+
+void cProtocol162::SendPlayerMaxSpeed(void)
+{
+ cCSLock Lock(m_CSPacket);
+ WriteByte(PACKET_ENTITY_PROPERTIES);
+ WriteInt(m_Client->GetPlayer()->GetUniqueID());
+ WriteInt(1);
+ WriteString("generic.movementSpeed");
+ WriteDouble(m_Client->GetPlayer()->GetMaxSpeed());
+ WriteShort(0);
+ Flush();
+}
+
+
+
+