From 2922e40cae58bbddf629733a9a7865f2a00ed9e1 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Mon, 27 Aug 2007 15:53:10 +0000 Subject: Added support for user commands. Implemented "warp" and "item". --- src/account-server/account.cpp | 94 +----------------------------------------- 1 file changed, 2 insertions(+), 92 deletions(-) (limited to 'src/account-server/account.cpp') 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 @@ -72,87 +72,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. */ @@ -190,15 +109,6 @@ bool Account::delCharacter(std::string const &name) } -/** - * Get all the characters. - */ -Characters &Account::getCharacters() -{ - return mCharacters; -} - - /** * Get a character by name. */ -- cgit v1.2.3-70-g09d2