diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-30 16:20:33 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-30 16:20:33 +0000 |
commit | 25914cddf606e683a4226f46b56f800400d633d3 (patch) | |
tree | 58a95b50fc59a45459906d109b4768aa4124951d /src/account-server/serverhandler.hpp | |
parent | 5af1c90d2f86e10de74285d89ee975bd959a6556 (diff) | |
download | manaserv-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/serverhandler.hpp')
-rw-r--r-- | src/account-server/serverhandler.hpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/account-server/serverhandler.hpp b/src/account-server/serverhandler.hpp index 5c57f03b..ec537dbd 100644 --- a/src/account-server/serverhandler.hpp +++ b/src/account-server/serverhandler.hpp @@ -26,9 +26,8 @@ #include <map> #include "account-server/accounthandler.hpp" -#include "account-server/characterdata.hpp" +#include "account-server/character.hpp" #include "net/connectionhandler.hpp" -#include "utils/countedptr.h" class AccountClient; @@ -53,17 +52,20 @@ class ServerHandler: public ConnectionHandler /** * Sends a magic token and character data to the relevant game server. */ - void registerGameClient(std::string const &, CharacterPtr); - + void registerGameClient(std::string const &, Character *); + +// There is no rationale for having a character name, but not its ID. +#if 0 /** * Get character (temp used by chat server). */ CharacterPtr getCharacter(const std::string &name); - +#endif + /** * Make client join the specified guild channel */ - void enterChannel(const std::string &guildName, CharacterData *player); + void enterChannel(const std::string &guildName, Character *player); protected: /** |