From d811a539474a6eeb4439a4204f3d96551a5b7c1e Mon Sep 17 00:00:00 2001 From: Rogier Polak Date: Mon, 5 Mar 2007 03:32:59 +0000 Subject: Added an abstrart base class for characterdata, in order to use the same serialize and deserialize functions on both the accountserver and the gameserver. --- src/account-server/accountclient.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/account-server/accountclient.hpp') 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 #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 -- cgit v1.2.3-70-g09d2