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/serverhandler.hpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/account-server/serverhandler.hpp') diff --git a/src/account-server/serverhandler.hpp b/src/account-server/serverhandler.hpp index 30dadd65..cc269165 100644 --- a/src/account-server/serverhandler.hpp +++ b/src/account-server/serverhandler.hpp @@ -26,15 +26,10 @@ #include -#include "playerdata.hpp" +#include "account-server/characterdata.hpp" #include "net/connectionhandler.hpp" #include "utils/countedptr.h" -/** - * Type definition for a smart pointer to PlayerData. - */ -typedef utils::CountedPtr< PlayerData > PlayerPtr; - /** * Manages communications with all the game servers. This class also keeps * track of the maps each game server supports. @@ -54,9 +49,9 @@ class ServerHandler: public ConnectionHandler bool getGameServerFromMap(unsigned, std::string &address, short &port); /** - * Sends a magic token and player data to the relevant game server. + * Sends a magic token and character data to the relevant game server. */ - void registerGameClient(std::string const &, PlayerPtr); + void registerGameClient(std::string const &, CharacterPtr); protected: /** -- cgit v1.2.3-60-g2f50