![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <AccountManager.hpp>
Public Member Functions | |
| AccountManager (yap::DatabaseManager &dm) | |
| ~AccountManager () | |
| bool | CreateNewAccount (const yap::String &name, const yap::String &password, const yap::String &email, const yap::String &creationIp) |
| Account * | Login (const yap::String &name, const yap::String &password, const yap::String ¤t_ip) |
| void | Disconnect (const yap::String &name) |
| void | DisplayAllAccounts () |
| void | DisplayLoggedAccounts () |
| Account & | GetAccount (const yap::String &name) |
| yap::String | EncodePassword (const yap::String &password) |
Private Member Functions | |
| DISALLOW_COPY (AccountManager) | |
Private Attributes | |
| yap::DatabaseManager & | databaseManager_ |
| yap::collection::Map < yap::String, Account * > | accounts_ |
Definition at line 16 of file AccountManager.hpp.
| yse::AccountManager::AccountManager | ( | yap::DatabaseManager & | dm | ) |
Definition at line 50 of file AccountManager.cpp.
| yse::AccountManager::~AccountManager | ( | ) |
Definition at line 56 of file AccountManager.cpp.
| bool yse::AccountManager::CreateNewAccount | ( | const yap::String & | name, |
| const yap::String & | password, | ||
| const yap::String & | email, | ||
| const yap::String & | creationIp | ||
| ) |
Definition at line 62 of file AccountManager.cpp.
|
private |
| void yse::AccountManager::Disconnect | ( | const yap::String & | name | ) |
Definition at line 278 of file AccountManager.cpp.
| void yse::AccountManager::DisplayAllAccounts | ( | ) |
Definition at line 227 of file AccountManager.cpp.
| void yse::AccountManager::DisplayLoggedAccounts | ( | ) |
| yap::String yse::AccountManager::EncodePassword | ( | const yap::String & | password | ) |
Definition at line 269 of file AccountManager.cpp.
| Account & yse::AccountManager::GetAccount | ( | const yap::String & | name | ) |
| Account * yse::AccountManager::Login | ( | const yap::String & | name, |
| const yap::String & | password, | ||
| const yap::String & | current_ip | ||
| ) |
Definition at line 155 of file AccountManager.cpp.
|
private |
Definition at line 41 of file AccountManager.hpp.
|
private |
Definition at line 40 of file AccountManager.hpp.