blob: cfef71e0ba4c6b89c5d3557b8ac933f2b2f43746 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#include "stdafx.h"
#include <iostream>
#include "InputOutputStream.h"
#include "PacketListener.h"
#include "KickPlayerPacket.h"
KickPlayerPacket::KickPlayerPacket()
{
m_networkSmallId = 0;
}
KickPlayerPacket::KickPlayerPacket(BYTE networkSmallId)
{
m_networkSmallId = networkSmallId;
}
void KickPlayerPacket::handle(PacketListener *listener)
{
listener->handleKickPlayer(shared_from_this());
}
void KickPlayerPacket::read(DataInputStream *dis) //throws IOException
{
m_networkSmallId = dis->readByte();
}
void KickPlayerPacket::write(DataOutputStream *dos) //throws IOException
{
dos->writeByte(m_networkSmallId);
}
int KickPlayerPacket::getEstimatedSize()
{
return 1;
}
|