summaryrefslogtreecommitdiff
path: root/src/account-server/accountclient.hpp
diff options
context:
space:
mode:
authorRogier Polak <rogier.l.a.polak@gmail.com>2007-03-05 03:32:59 +0000
committerRogier Polak <rogier.l.a.polak@gmail.com>2007-03-05 03:32:59 +0000
commitd811a539474a6eeb4439a4204f3d96551a5b7c1e (patch)
tree66b2482085965598845a0e58fa04d1bcdb6dd5a1 /src/account-server/accountclient.hpp
parentf0d969eba1840362daad9debc93907c270b22ea5 (diff)
downloadmanaserv-d811a539474a6eeb4439a4204f3d96551a5b7c1e.tar.gz
manaserv-d811a539474a6eeb4439a4204f3d96551a5b7c1e.tar.bz2
manaserv-d811a539474a6eeb4439a4204f3d96551a5b7c1e.tar.xz
manaserv-d811a539474a6eeb4439a4204f3d96551a5b7c1e.zip
Added an abstrart base class for characterdata, in order to use the same serialize and deserialize functions on both the accountserver and the gameserver.
Diffstat (limited to 'src/account-server/accountclient.hpp')
-rw-r--r--src/account-server/accountclient.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/account-server/accountclient.hpp b/src/account-server/accountclient.hpp
index 8d42e0e4..eb88016c 100644
--- a/src/account-server/accountclient.hpp
+++ b/src/account-server/accountclient.hpp
@@ -27,6 +27,7 @@
#include <enet/enet.h>
#include "account-server/account.hpp"
+#include "account-server/characterdata.hpp"
#include "net/netcomputer.hpp"
class AccountHandler;
@@ -70,7 +71,7 @@ class AccountClient : public NetComputer
* Set the selected character associated with connection.
*/
void
- setCharacter(PlayerPtr ch);
+ setCharacter(CharacterPtr ch);
/**
* Deselect the character associated with connection.
@@ -81,7 +82,7 @@ class AccountClient : public NetComputer
/**
* Get character associated with the connection
*/
- PlayerPtr
+ CharacterPtr
getCharacter() const { return mCharacterPtr; }
private:
@@ -89,7 +90,7 @@ class AccountClient : public NetComputer
AccountPtr mAccountPtr;
/** Selected character */
- PlayerPtr mCharacterPtr;
+ CharacterPtr mCharacterPtr;
};
#endif