2013-07-29 07:13:03 -04:00
|
|
|
|
|
|
|
// Protocol16x.h
|
|
|
|
|
|
|
|
/*
|
|
|
|
Declares the 1.6.x protocol classes:
|
|
|
|
- cProtocol161
|
|
|
|
- release 1.6.1 protocol (#73)
|
|
|
|
- cProtocol162
|
|
|
|
- release 1.6.2 protocol (#74)
|
2013-09-19 14:49:09 -04:00
|
|
|
- release 1.6.3 protocol (#77) - no relevant changes
|
|
|
|
- release 1.6.4 protocol (#78) - no relevant changes
|
2013-07-29 07:13:03 -04:00
|
|
|
(others may be added later in the future for the 1.6 release series)
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Protocol15x.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cProtocol161 :
|
|
|
|
public cProtocol150
|
|
|
|
{
|
|
|
|
typedef cProtocol150 super;
|
|
|
|
|
|
|
|
public:
|
|
|
|
cProtocol161(cClientHandle * a_Client);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
// cProtocol150 overrides:
|
|
|
|
virtual void SendAttachEntity (const cEntity & a_Entity, const cEntity * a_Vehicle) override;
|
|
|
|
virtual void SendChat (const AString & a_Message) override;
|
2014-04-06 16:28:41 -04:00
|
|
|
virtual void SendChat (const cCompositeChat & a_Message) override;
|
2013-07-29 15:42:05 -04:00
|
|
|
virtual void SendEditSign (int a_BlockX, int a_BlockY, int a_BlockZ) override; ///< Request the client to open up the sign editor for the sign (1.6+)
|
2013-07-29 07:13:03 -04:00
|
|
|
virtual void SendGameMode (eGameMode a_GameMode) override;
|
|
|
|
virtual void SendHealth (void) override;
|
|
|
|
virtual void SendPlayerMaxSpeed(void) override;
|
|
|
|
virtual void SendRespawn (void) override;
|
2013-11-08 15:32:14 -05:00
|
|
|
virtual void SendWindowOpen (const cWindow & a_Window) override;
|
2013-07-29 07:13:03 -04:00
|
|
|
|
|
|
|
virtual int ParseEntityAction (void) override;
|
2014-04-21 02:22:25 -04:00
|
|
|
virtual int ParseLogin (void) override;
|
2013-07-29 07:13:03 -04:00
|
|
|
virtual int ParsePlayerAbilities(void) override;
|
|
|
|
|
|
|
|
// New packets:
|
|
|
|
virtual int ParseSteerVehicle(void);
|
|
|
|
|
|
|
|
// Enable new packets' handling
|
|
|
|
virtual int ParsePacket(unsigned char a_PacketType) override;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cProtocol162 :
|
|
|
|
public cProtocol161
|
|
|
|
{
|
|
|
|
typedef cProtocol161 super;
|
|
|
|
|
|
|
|
public:
|
|
|
|
cProtocol162(cClientHandle * a_Client);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// cProtocol161 overrides:
|
|
|
|
virtual void SendPlayerMaxSpeed(void) override;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|