diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-30 10:19:19 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-30 10:19:19 +0200 |
commit | fa93c0cf5434384aac5a75aa3cb3910d3f7679a6 (patch) | |
tree | c29ab301118136e1ae5d36b820ddec57abc1346f /source/cClientHandle.h | |
parent | Fixed the VC2010 project file (diff) | |
download | cuberite-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 '')
-rw-r--r-- | source/cClientHandle.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/cClientHandle.h b/source/cClientHandle.h index 3ae37c2e7..8ef670837 100644 --- a/source/cClientHandle.h +++ b/source/cClientHandle.h @@ -83,7 +83,6 @@ public: bool IsPlaying(void) const {return (m_State == csPlaying); } void SendDisconnect(const AString & a_Reason); - void SendHandshake (const AString & a_ServerName); void SendInventorySlot(int a_WindowID, short a_SlotNum, const cItem & a_Item); void SendChat(const AString & a_Message); void SendPlayerAnimation(const cPlayer & a_Player, char a_Animation); @@ -142,13 +141,9 @@ public: void PacketError(unsigned char a_PacketType); // Calls that cProtocol descendants use for handling packets: - // Packets handled in csConnected: - void HandlePing (void); - void HandleHandshake (const AString & a_Username); - void HandleLogin (int a_ProtocolVersion, const AString & a_Username); - void HandleUnexpectedPacket(int a_PacketType); // the default case -> kick + void HandlePing (void); - // Packets handled while in csPlaying: + void HandleUnexpectedPacket (int a_PacketType); // the default case -> kick void HandleCreativeInventory(short a_SlotNum, const cItem & a_HeldItem); void HandlePlayerPos (double a_PosX, double a_PosY, double a_PosZ, double a_Stance, bool a_IsOnGround); void HandleBlockDig (int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, char a_Status); @@ -170,6 +165,11 @@ public: void HandleDisconnect (const AString & a_Reason); void HandleKeepAlive (int a_KeepAliveID); + /** Called when the protocol has finished logging the user in. + Return true to allow the user in; false to kick them. + */ + bool HandleLogin(int a_ProtocolVersion, const AString & a_Username); + void SendData(const char * a_Data, int a_Size); private: |