#include <account.hpp>
Definition at line 47 of file account.hpp.
Public Member Functions | |
| Account (const std::string &name, const std::string &password, const std::string &email, int id=-1) | |
| Constructor with initial account info. | |
| Account (const std::string &name, const std::string &password, const std::string &email, const Characters &characters) | |
| Constructor with initial account info. | |
| ~Account () | |
| Destructor. | |
| void | setName (const std::string &name) |
| Set the user name. | |
| const std::string & | getName () const |
| Get the user name. | |
| void | setPassword (const std::string &password) |
| Set the user password. | |
| const std::string | getPassword (void) const |
| Get the user password. | |
| void | setEmail (const std::string &email) |
| Set the user email address. | |
| const std::string & | getEmail (void) const |
| Get the user email address. | |
| void | setLevel (AccountLevel level) |
| Set the account level. | |
| AccountLevel | getLevel () const |
| Get the account level. | |
| void | setCharacters (const Characters &characters) |
| Set the characters. | |
| void | addCharacter (CharacterPtr character) |
| Add a new character. | |
| bool | delCharacter (std::string const &name) |
| Remove a character. | |
| Characters & | getCharacters () |
| Get all the characters. | |
| CharacterPtr | getCharacter (const std::string &name) |
| Get a character by name. | |
| int | getID () const |
| Get account ID. | |
| void | setID (int) |
| Set account ID. | |
Private Member Functions | |
| Account () | |
| Account (Account const &rhs) | |
| Account & | operator= (Account const &rhs) |
Private Attributes | |
| int | mID |
| unique id | |
| std::string | mName |
| user name | |
| std::string | mPassword |
| user password (encrypted) | |
| std::string | mEmail |
| user email address | |
| Characters | mCharacters |
| Character data. | |
| AccountLevel | mLevel |
| account level | |
|
||||||||||||||||||||
|
Constructor with initial account info.
Definition at line 33 of file account.cpp. |
|
||||||||||||||||||||
|
Constructor with initial account info.
Definition at line 51 of file account.cpp. |
|
|
Destructor.
Definition at line 68 of file account.cpp. |
|
|
|
|
|
|
|
|
Add a new character.
Definition at line 170 of file account.cpp. |
|
|
Remove a character.
Definition at line 180 of file account.cpp. |
|
|
Get a character by name.
Definition at line 205 of file account.cpp. |
|
|
Get all the characters.
Definition at line 196 of file account.cpp. |
|
|
Get the user email address.
Definition at line 130 of file account.cpp. |
|
|
Get account ID.
Definition at line 202 of file account.hpp. |
|
|
Get the account level.
Definition at line 150 of file account.cpp. |
|
|
Get the user name.
Definition at line 89 of file account.cpp. |
|
|
Get the user password.
Definition at line 109 of file account.cpp. |
|
|
|
|
|
Set the characters.
Definition at line 160 of file account.cpp. |
|
|
Set the user email address.
Definition at line 119 of file account.cpp. |
|
|
Set account ID. The account shall not have any ID yet. Definition at line 216 of file account.cpp. |
|
|
Set the account level.
Definition at line 140 of file account.cpp. |
|
|
Set the user name.
Definition at line 79 of file account.cpp. |
|
|
Set the user password.
Definition at line 99 of file account.cpp. |
|
|
Character data.
Definition at line 222 of file account.hpp. |
|
|
user email address
Definition at line 221 of file account.hpp. |
|
|
unique id
Definition at line 218 of file account.hpp. |
|
|
account level
Definition at line 223 of file account.hpp. |
|
|
user name
Definition at line 219 of file account.hpp. |
|
|
user password (encrypted)
Definition at line 220 of file account.hpp. |
1.3.9.1