summaryrefslogtreecommitdiffstats
path: root/source/packets/cPacket_Player.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-29 23:02:39 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-29 23:02:39 +0200
commitf1d62b77cd1f9eb31cf508ee5eb54e09b9ca10e5 (patch)
treec57d967bab26888ae83692ab09cbbc7fabbae6f5 /source/packets/cPacket_Player.h
parentAdded a check if torch is placed on the bottom face, temporarily fix the assert. (diff)
downloadcuberite-f1d62b77cd1f9eb31cf508ee5eb54e09b9ca10e5.tar
cuberite-f1d62b77cd1f9eb31cf508ee5eb54e09b9ca10e5.tar.gz
cuberite-f1d62b77cd1f9eb31cf508ee5eb54e09b9ca10e5.tar.bz2
cuberite-f1d62b77cd1f9eb31cf508ee5eb54e09b9ca10e5.tar.lz
cuberite-f1d62b77cd1f9eb31cf508ee5eb54e09b9ca10e5.tar.xz
cuberite-f1d62b77cd1f9eb31cf508ee5eb54e09b9ca10e5.tar.zst
cuberite-f1d62b77cd1f9eb31cf508ee5eb54e09b9ca10e5.zip
Diffstat (limited to '')
-rw-r--r--source/packets/cPacket_Player.h151
1 files changed, 0 insertions, 151 deletions
diff --git a/source/packets/cPacket_Player.h b/source/packets/cPacket_Player.h
deleted file mode 100644
index 1a647a5fc..000000000
--- a/source/packets/cPacket_Player.h
+++ /dev/null
@@ -1,151 +0,0 @@
-
-// cPacket_Player.h
-
-/* Interfaces to the player-related packets:
- - PlayerAbilities (0xca)
- - PlayerListItem (0xc9)
- - PlayerLook (0x0c)
- - PlayerMoveLook (0x0d)
- - PlayerPosition (0x0b)
-*/
-
-#pragma once
-
-
-
-
-
-#include "cPacket.h"
-
-
-
-
-
-// fwd:
-class cPlayer;
-
-
-
-
-
-class cPacket_PlayerAbilities : public cPacket
-{
-public:
- cPacket_PlayerAbilities(void) { m_PacketID = E_PLAYER_LIST_ITEM; }
-
- virtual int Parse(cByteBuffer & a_Buffer) override;
-
- virtual cPacket * Clone() const { return new cPacket_PlayerAbilities(*this); }
-
- bool m_Invulnerable; // Speculation
- bool m_IsFlying;
- bool m_CanFly;
- bool m_InstaMine; // Speculation
-} ;
-
-
-
-
-
-class cPacket_PlayerListItem : public cPacket
-{
-public:
- cPacket_PlayerListItem() { m_PacketID = E_PLAYER_LIST_ITEM; }
- cPacket_PlayerListItem(const AString & a_PlayerName, bool a_Online, short a_Ping);
-
- virtual int Parse(cByteBuffer & a_Buffer) override;
-
- virtual cPacket* Clone() const { return new cPacket_PlayerListItem(*this); }
-
- AString m_PlayerName; // Supports chat coloring, limited to 16 characters.
- bool m_Online;
- short m_Ping;
-} ;
-
-
-
-
-
-class cPacket_PlayerLook : public cPacket
-{
-public:
- cPacket_PlayerLook()
- : m_Rotation( 0 )
- , m_Pitch( 0 )
- , m_IsOnGround( false )
- {
- m_PacketID = E_PLAYERLOOK;
- }
-
- cPacket_PlayerLook( cPlayer* a_Player );
- virtual cPacket* Clone() const { return new cPacket_PlayerLook(*this); }
-
- virtual int Parse(cByteBuffer & a_Buffer) override;
-
- float m_Rotation;
- float m_Pitch;
- bool m_IsOnGround;
-} ;
-
-
-
-
-
-class cPacket_PlayerMoveLook : public cPacket
-{
-public:
- cPacket_PlayerMoveLook()
- : m_PosX( 0.0 )
- , m_PosY( 0.0 )
- , m_Stance( 0.0 )
- , m_PosZ( 0.0 )
- , m_Rotation( 0.f )
- , m_Pitch( 0.f )
- , m_IsOnGround( false )
- {
- m_PacketID = E_PLAYERMOVELOOK;
- }
-
- cPacket_PlayerMoveLook(const cPlayer & a_Player);
- virtual cPacket * Clone() const { return new cPacket_PlayerMoveLook(*this); }
-
- virtual int Parse(cByteBuffer & a_Buffer) override;
-
- double m_PosX;
- double m_PosY;
- double m_Stance;
- double m_PosZ;
- float m_Rotation;
- float m_Pitch;
- bool m_IsOnGround;
-} ;
-
-
-
-
-
-class cPacket_PlayerPosition : public cPacket
-{
-public:
- cPacket_PlayerPosition(const cPlayer & a_Player);
- cPacket_PlayerPosition()
- : m_PosX( 0.0 )
- , m_PosY( 0.0 )
- , m_PosZ( 0.0 )
- , m_Stance( 0.0 )
- , m_IsOnGround(true)
- { m_PacketID = E_PLAYERPOS; }
- virtual cPacket* Clone() const { return new cPacket_PlayerPosition(*this); }
-
- virtual int Parse(cByteBuffer & a_Buffer) override;
-
- double m_PosX;
- double m_PosY;
- double m_PosZ;
- double m_Stance;
- bool m_IsOnGround;
-} ;
-
-
-
-