summaryrefslogtreecommitdiffstats
path: root/source/Protocol125.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-30 10:19:19 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-30 10:19:19 +0200
commitfa93c0cf5434384aac5a75aa3cb3910d3f7679a6 (patch)
treec29ab301118136e1ae5d36b820ddec57abc1346f /source/Protocol125.h
parentFixed the VC2010 project file (diff)
downloadcuberite-fa93c0cf5434384aac5a75aa3cb3910d3f7679a6.tar
cuberite-fa93c0cf5434384aac5a75aa3cb3910d3f7679a6.tar.gz
cuberite-fa93c0cf5434384aac5a75aa3cb3910d3f7679a6.tar.bz2
cuberite-fa93c0cf5434384aac5a75aa3cb3910d3f7679a6.tar.lz
cuberite-fa93c0cf5434384aac5a75aa3cb3910d3f7679a6.tar.xz
cuberite-fa93c0cf5434384aac5a75aa3cb3910d3f7679a6.tar.zst
cuberite-fa93c0cf5434384aac5a75aa3cb3910d3f7679a6.zip
Diffstat (limited to 'source/Protocol125.h')
-rw-r--r--source/Protocol125.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/Protocol125.h b/source/Protocol125.h
index c1b10bd52..db2b88833 100644
--- a/source/Protocol125.h
+++ b/source/Protocol125.h
@@ -42,7 +42,6 @@ public:
virtual void SendEntRelMove (const cEntity & a_Entity, char a_RelX, char a_RelY, char a_RelZ) override;
virtual void SendEntRelMoveLook (const cEntity & a_Entity, char a_RelX, char a_RelY, char a_RelZ) override;
virtual void SendGameMode (eGameMode a_GameMode) override;
- virtual void SendHandshake (const AString & a_ConnectionHash) override;
virtual void SendHealth (void) override;
virtual void SendInventoryProgress(char a_WindowID, short a_Progressbar, short a_Value) override;
virtual void SendInventorySlot (int a_WindowID, short a_SlotNum, const cItem & a_Item) override;
@@ -79,8 +78,13 @@ protected:
cByteBuffer m_ReceivedData; //< Buffer for the received data
+ AString m_Username; //< Stored in ParseHandshake(), compared to Login username
+
virtual void SendData(const char * a_Data, int a_Size) override;
+ /// Sends the Handshake packet
+ void SendHandshake(const AString & a_ConnectionHash);
+
/// Parse the packet of the specified type from m_ReceivedData (switch into ParseXYZ() )
virtual int ParsePacket(unsigned char a_PacketType);