diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-31 09:14:03 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-31 09:14:03 +0000 |
commit | 99e14d41865086107ec9d69ce725d98d522e448a (patch) | |
tree | ff8f1047029df1c8a694da54d90aeab1b1bc1cc4 /src/account-server/accountclient.cpp | |
parent | 4b43c8653a267ff3ac7224805f4522a94be9fab7 (diff) | |
download | manaserv-99e14d41865086107ec9d69ce725d98d522e448a.tar.gz manaserv-99e14d41865086107ec9d69ce725d98d522e448a.tar.bz2 manaserv-99e14d41865086107ec9d69ce725d98d522e448a.tar.xz manaserv-99e14d41865086107ec9d69ce725d98d522e448a.zip |
Tidied up account server.
Diffstat (limited to 'src/account-server/accountclient.cpp')
-rw-r--r-- | src/account-server/accountclient.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/account-server/accountclient.cpp b/src/account-server/accountclient.cpp index 04bd6d59..145a18f3 100644 --- a/src/account-server/accountclient.cpp +++ b/src/account-server/accountclient.cpp @@ -23,13 +23,10 @@ #include "account-server/accountclient.hpp" -#include "account-server/accounthandler.hpp" - AccountClient::AccountClient(ENetPeer *peer): NetComputer(peer), status(CLIENT_LOGIN), - mAccount(NULL), - mCharacter(NULL) + mAccount(NULL) { } @@ -38,27 +35,14 @@ AccountClient::~AccountClient() unsetAccount(); } - void AccountClient::setAccount(Account *acc) { unsetAccount(); mAccount = acc; } -void AccountClient::setCharacter(Character *ch) -{ - unsetCharacter(); - mCharacter = ch; -} - void AccountClient::unsetAccount() { - unsetCharacter(); delete mAccount; mAccount = NULL; } - -void AccountClient::unsetCharacter() -{ - mCharacter = NULL; -} |