diff options
Diffstat (limited to 'src/account-server/account.cpp')
-rw-r--r-- | src/account-server/account.cpp | 94 |
1 files changed, 2 insertions, 92 deletions
diff --git a/src/account-server/account.cpp b/src/account-server/account.cpp index 6ca75535..fb4e0572 100644 --- a/src/account-server/account.cpp +++ b/src/account-server/account.cpp @@ -34,11 +34,11 @@ Account::Account(const std::string& name, const std::string& password, const std::string& email, int id) - : mID(id), - mName(name), + : mName(name), mPassword(password), mEmail(email), mCharacters(), + mID(id), mLevel(AL_NORMAL) { // NOOP @@ -73,87 +73,6 @@ Account::~Account() /** - * Set the user name. - */ -void -Account::setName(const std::string& name) -{ - mName = name; -} - - -/** - * Get the user name. - */ -const std::string& -Account::getName(void) const -{ - return mName; -} - - -/** - * Set the user password. - */ -void -Account::setPassword(const std::string& password) -{ - mPassword = password; -} - - -/** - * Get the user password. - */ -const std::string -Account::getPassword(void) const -{ - return mPassword; -} - - -/** - * Set the user email address. - */ -void -Account::setEmail(const std::string& email) -{ - // Email validity is checked by Accounthandler - mEmail = email; -} - - -/** - * Get the user email address. - */ -const std::string& -Account::getEmail(void) const -{ - return mEmail; -} - - -/** - * Set the account level. - */ -void -Account::setLevel(AccountLevel level) -{ - mLevel = level; -} - - -/** - * Get the account level. - */ -AccountLevel -Account::getLevel(void) const -{ - return mLevel; -} - - -/** * Set the characters. */ void @@ -191,15 +110,6 @@ bool Account::delCharacter(std::string const &name) /** - * Get all the characters. - */ -Characters &Account::getCharacters() -{ - return mCharacters; -} - - -/** * Get a character by name. */ CharacterPtr Account::getCharacter(const std::string& name) |