YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
IPacket.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_IPACKET_HPP
2
# define YAPOG_IPACKET_HPP
3
4
# include <SFML/Network/Packet.hpp>
5
6
# include "
YAPOG/Macros.hpp
"
7
# include "
YAPOG/System/IO/IWriter.hpp
"
8
# include "
YAPOG/System/IO/IReader.hpp
"
9
# include "
YAPOG/System/Network/PacketType.hpp
"
10
11
namespace
yap
12
{
13
struct
IPacket
:
public
IWriter
14
,
public
IReader
15
{
16
using
IWriter::Accept
;
17
using
IReader::Accept
;
18
19
virtual
~IPacket
() { }
20
21
virtual
const
PacketType
&
GetType
()
const
= 0;
22
23
virtual
sf::Packet&
GetInnerPacket
() = 0;
24
};
25
}
// namespace yap
26
27
#endif // YAPOG_IPACKET_HPP
YAPOG
include
YAPOG
System
Network
IPacket.hpp
Generated on Mon Sep 17 2012 22:24:24 for YAPOG by
1.8.1.1