YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
ChatHeader.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CHATHEADER_HPP
2
# define YAPOG_CHATHEADER_HPP
3
4
# include <utility>
5
# include "
YAPOG/Macros.hpp
"
6
# include "
YAPOG/Collection/Array.hpp
"
7
# include "
YAPOG/System/IntTypes.hpp
"
8
# include "
YAPOG/System/String.hpp
"
9
10
# define HISTORYMAX 1000
11
# define DEFAULTCHAN 1
12
# define DEFAULTTAB 0
13
14
namespace
yap
15
{
16
class
ChatCommand
;
17
typedef
collection::Array<String>
BufferType
;
18
// Which chan to display
19
typedef
collection::Array<Int16>
ChanType
;
20
// Pointers on functions
21
typedef
std::pair<
22
std::pair<bool, UInt32>,
23
std::pair<UInt32, BufferType>>
DisplayType
;
24
25
typedef
struct
Response
26
{
27
Response
() :
Clean
(false),
Command
(false),
Channb
(),
Message
() {};
28
29
void
operator=
(
const
struct
Response
& res)
30
{
31
this->
Clean
= res.
Clean
;
32
this->
Command
= res.
Command
;
33
this->
Channb
= res.
Channb
;
34
this->
Message
= res.
Message
;
35
}
36
37
bool
Clean
;
38
bool
Command
;
39
collection::Array<UInt32>
Channb
;
40
collection::Array<String>
Message
;
41
}
ResponseType
;
42
43
typedef
DisplayType
(
ChatCommand
::*
func
) (
BufferType
b);
44
}
// namespace yap
45
46
#endif // YAPOG_CHATHEADER_HPP
YAPOG
include
YAPOG
Game
Chat
ChatHeader.hpp
Generated on Mon Sep 17 2012 22:24:23 for YAPOG by
1.8.1.1