YAPOG  0.0.1
Yet Another Pokemon Online Game
ClientManager.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_SERVER_CLIENTMANAGER_HPP
2 # define YAPOG_SERVER_CLIENTMANAGER_HPP
3 
4 # include "YAPOG/Macros.hpp"
9 
10 namespace yse
11 {
12  class ClientSession;
13 
15  {
17 
18  public:
19 
20  ClientManager ();
21  ~ClientManager ();
22 
23  void AddClient (ClientSession* client);
24  void RemoveClient (ClientSession* client);
25 
26  void LaunchReception ();
27 
28  void Refresh ();
29  void Dispose ();
30 
31  void ServerTick (const yap::Time& dt);
32 
33  private:
34 
35  void HandleReception ();
36 
38 
41 
44  };
45 } // namespace yse
46 
47 #endif // YAPOG_SERVER_CLIENTMANAGER_HPP