YAPOG  0.0.1
Yet Another Pokemon Online Game
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"
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;
18  // Which chan to display
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;
41  } ResponseType;
42 
44 } // namespace yap
45 
46 #endif // YAPOG_CHATHEADER_HPP