YAPOG  0.0.1
Yet Another Pokemon Online Game
AccountManager.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_ACCOUNTMANAGER_HPP
2 # define YAPOG_ACCOUNTMANAGER_HPP
3 
4 # include "YAPOG/Macros.hpp"
5 # include "YAPOG/Game/ID.hpp"
7 # include "YAPOG/System/String.hpp"
9 # include "YAPOG/Collection/Map.hpp"
10 # include "Account/Account.hpp"
11 
12 namespace yse
13 {
14  class PlayerData;
15 
17  {
19  public:
21  ~AccountManager ();
22 
23  bool CreateNewAccount (
24  const yap::String& name,
25  const yap::String& password,
26  const yap::String& email,
27  const yap::String& creationIp);
28 
29  Account* Login (
30  const yap::String& name,
31  const yap::String& password,
32  const yap::String& current_ip);
33 
34  void Disconnect (const yap::String& name);
35  void DisplayAllAccounts ();
36  void DisplayLoggedAccounts ();
37  Account& GetAccount (const yap::String& name);
38  yap::String EncodePassword (const yap::String& password);
39  private:
42  };
43 } // namespace yse
44 
45 #endif // YAPOG_ACCOUNTMANAGER_HPP