summaryrefslogtreecommitdiff
path: root/src/account-server/account.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-27 15:53:10 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-27 15:53:10 +0000
commit2922e40cae58bbddf629733a9a7865f2a00ed9e1 (patch)
tree0ab7a3b6b7c09a180ece61daed219e914f1534f5 /src/account-server/account.cpp
parent518168ad7859ba214a79c48459e8053391339d68 (diff)
downloadmanaserv-2922e40cae58bbddf629733a9a7865f2a00ed9e1.tar.gz
manaserv-2922e40cae58bbddf629733a9a7865f2a00ed9e1.tar.bz2
manaserv-2922e40cae58bbddf629733a9a7865f2a00ed9e1.tar.xz
manaserv-2922e40cae58bbddf629733a9a7865f2a00ed9e1.zip
Added support for user commands. Implemented "warp" and "item".
Diffstat (limited to 'src/account-server/account.cpp')
-rw-r--r--src/account-server/account.cpp94
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)