summaryrefslogtreecommitdiff
path: root/src/net/charserverhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/charserverhandler.h')
-rw-r--r--src/net/charserverhandler.h31
1 files changed, 19 insertions, 12 deletions
diff --git a/src/net/charserverhandler.h b/src/net/charserverhandler.h
index 549c14688..3ba7f6cb5 100644
--- a/src/net/charserverhandler.h
+++ b/src/net/charserverhandler.h
@@ -34,6 +34,8 @@ class CharSelectDialog;
namespace Net
{
+class MessageIn;
+
struct Character;
typedef std::list<Character*> Characters;
@@ -82,25 +84,30 @@ class CharServerHandler notfinal
virtual void changeSlot(const int oldSlot, const int newSlot) = 0;
+ virtual void readPlayerData(Net::MessageIn &msg,
+ Net::Character *const character,
+ const bool withColors) const = 0;
+
protected:
- CharServerHandler() :
- mCharacters(),
- mSelectedCharacter(nullptr),
- mCharSelectDialog(nullptr),
- mCharCreateDialog(nullptr)
- {}
+ CharServerHandler()
+ {
+ mCharacters.clear();
+ mSelectedCharacter = nullptr;
+ mCharSelectDialog = nullptr;
+ mCharCreateDialog = nullptr;
+ }
- void updateCharSelectDialog();
- void unlockCharSelectDialog();
+ static void updateCharSelectDialog();
+ static void unlockCharSelectDialog();
/** The list of available characters. */
- Net::Characters mCharacters;
+ static Net::Characters mCharacters;
/** The selected character. */
- Net::Character *mSelectedCharacter;
+ static Net::Character *mSelectedCharacter;
- CharSelectDialog *mCharSelectDialog;
- CharCreateDialog *mCharCreateDialog;
+ static CharSelectDialog *mCharSelectDialog;
+ static CharCreateDialog *mCharCreateDialog;
};
} // namespace Net