diff options
Diffstat (limited to 'src/net/ea/charserverhandler.h')
-rw-r--r-- | src/net/ea/charserverhandler.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/net/ea/charserverhandler.h b/src/net/ea/charserverhandler.h index ec21a357..e499ab74 100644 --- a/src/net/ea/charserverhandler.h +++ b/src/net/ea/charserverhandler.h @@ -23,6 +23,7 @@ #define NET_EA_CHARSERVERHANDLER_H #include "net/messagehandler.h" +#include "net/charhandler.h" #include "lockedarray.h" @@ -33,7 +34,7 @@ class LoginData; /** * Deals with incoming messages from the character server. */ -class CharServerHandler : public MessageHandler +class CharServerHandler : public MessageHandler, public Net::CharHandler { public: CharServerHandler(); @@ -54,6 +55,13 @@ class CharServerHandler : public MessageHandler void setCharCreateDialog(CharCreateDialog *window) { mCharCreateDialog = window; } + void chooseCharacter(int slot, LocalPlayer* character); + + void newCharacter(const std::string &name, int slot, bool gender, + int hairstyle, int hairColor); + + void deleteCharacter(int slot, LocalPlayer* character); + protected: LoginData *mLoginData; LockedArray<LocalPlayer*> *mCharInfo; @@ -62,4 +70,6 @@ class CharServerHandler : public MessageHandler LocalPlayer *readPlayerData(MessageIn &msg, int &slot); }; +extern Net::CharHandler *charHandler; + #endif // NET_EA_CHARSERVERHANDLER_H |