From 25914cddf606e683a4226f46b56f800400d633d3 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Thu, 30 Aug 2007 16:20:33 +0000 Subject: Got rid of abstract storage and reference-counted pointers. Fixed lifetime of accounts and characters in server memory. Cleaned some code. --- src/account-server/accounthandler.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/account-server/accounthandler.hpp') diff --git a/src/account-server/accounthandler.hpp b/src/account-server/accounthandler.hpp index 61e81103..9762ca6d 100644 --- a/src/account-server/accounthandler.hpp +++ b/src/account-server/accounthandler.hpp @@ -28,7 +28,7 @@ #include "utils/tokencollector.hpp" class AccountClient; -class CharacterData; +class Character; /** * Manages the data stored in user accounts and provides a reliable interface @@ -95,7 +95,7 @@ class AccountHandler : public ConnectionHandler private: - void sendCharacterData(AccountClient &, int, CharacterData const &); + void sendCharacterData(AccountClient &, int, Character const &); void handleLoginMessage(AccountClient &computer, MessageIn &msg); @@ -133,8 +133,7 @@ class AccountHandler : public ConnectionHandler /** * Send guild join for each guild the player belongs to. */ - void - handleGuildJoining(AccountClient &computer, CharacterData *character); + void handleGuildJoining(AccountClient &computer, Character *character); }; extern AccountHandler * accountHandler; -- cgit v1.2.3-60-g2f50