summaryrefslogtreecommitdiff
path: root/src/account-server/accountclient.hpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-30 16:20:33 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-30 16:20:33 +0000
commit25914cddf606e683a4226f46b56f800400d633d3 (patch)
tree58a95b50fc59a45459906d109b4768aa4124951d /src/account-server/accountclient.hpp
parent5af1c90d2f86e10de74285d89ee975bd959a6556 (diff)
downloadmanaserv-25914cddf606e683a4226f46b56f800400d633d3.tar.gz
manaserv-25914cddf606e683a4226f46b56f800400d633d3.tar.bz2
manaserv-25914cddf606e683a4226f46b56f800400d633d3.tar.xz
manaserv-25914cddf606e683a4226f46b56f800400d633d3.zip
Got rid of abstract storage and reference-counted pointers. Fixed lifetime of accounts and characters in server memory. Cleaned some code.
Diffstat (limited to 'src/account-server/accountclient.hpp')
-rw-r--r--src/account-server/accountclient.hpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/account-server/accountclient.hpp b/src/account-server/accountclient.hpp
index f64d0ba0..a2c17c0e 100644
--- a/src/account-server/accountclient.hpp
+++ b/src/account-server/accountclient.hpp
@@ -27,7 +27,7 @@
#include <enet/enet.h>
#include "account-server/account.hpp"
-#include "account-server/characterdata.hpp"
+#include "account-server/character.hpp"
#include "net/netcomputer.hpp"
class AccountHandler;
@@ -59,8 +59,7 @@ class AccountClient : public NetComputer
/**
* Set the account associated with the connection
*/
- void
- setAccount(AccountPtr acc);
+ void setAccount(Account *acc);
/**
* Unset the account associated with the connection
@@ -71,14 +70,14 @@ class AccountClient : public NetComputer
/**
* Get account associated with the connection.
*/
- AccountPtr
- getAccount() const { return mAccountPtr; }
+ Account *getAccount() const
+ { return mAccount; }
/**
* Set the selected character associated with connection.
*/
void
- setCharacter(CharacterPtr ch);
+ setCharacter(Character *ch);
/**
* Deselect the character associated with connection.
@@ -89,17 +88,17 @@ class AccountClient : public NetComputer
/**
* Get character associated with the connection
*/
- CharacterPtr
- getCharacter() const { return mCharacterPtr; }
+ Character *getCharacter() const
+ { return mCharacter; }
int status;
private:
/** Account associated with connection */
- AccountPtr mAccountPtr;
+ Account *mAccount;
/** Selected character */
- CharacterPtr mCharacterPtr;
+ Character *mCharacter;
};
#endif