YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
"
6
# include "
YAPOG/System/IntTypes.hpp
"
7
# include "
YAPOG/System/String.hpp
"
8
# include "
YAPOG/Database/DatabaseManager.hpp
"
9
# include "
YAPOG/Collection/Map.hpp
"
10
# include "
Account/Account.hpp
"
11
12
namespace
yse
13
{
14
class
PlayerData;
15
16
class
AccountManager
17
{
18
DISALLOW_COPY
(
AccountManager
);
19
public
:
20
AccountManager
(
yap::DatabaseManager
& dm);
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
:
40
yap::DatabaseManager
&
databaseManager_
;
41
yap::collection::Map<yap::String, Account*>
accounts_
;
42
};
43
}
// namespace yse
44
45
#endif // YAPOG_ACCOUNTMANAGER_HPP
YAPOG.Server
include
Account
AccountManager.hpp
Generated on Mon Sep 17 2012 22:24:22 for YAPOG by
1.8.1.1