diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-25 17:00:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-25 17:00:29 +0300 |
commit | 86ea4ef67a3a4ee16ad41bdd2a5e8a0a19635068 (patch) | |
tree | 9fb021b988d6ac482b02b2c91cfc3981696e981c /src/net/charserverhandler.h | |
parent | 5f602ac6b69195658ea54d218b29b270744bbb47 (diff) | |
download | manaplus-86ea4ef67a3a4ee16ad41bdd2a5e8a0a19635068.tar.gz manaplus-86ea4ef67a3a4ee16ad41bdd2a5e8a0a19635068.tar.bz2 manaplus-86ea4ef67a3a4ee16ad41bdd2a5e8a0a19635068.tar.xz manaplus-86ea4ef67a3a4ee16ad41bdd2a5e8a0a19635068.zip |
Move receive code from charserverhandler into separate file.
Diffstat (limited to 'src/net/charserverhandler.h')
-rw-r--r-- | src/net/charserverhandler.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/net/charserverhandler.h b/src/net/charserverhandler.h index 2495cf6c1..d663db093 100644 --- a/src/net/charserverhandler.h +++ b/src/net/charserverhandler.h @@ -86,14 +86,20 @@ class CharServerHandler notfinal virtual void changeSlot(const int oldSlot, const int newSlot) = 0; - virtual void readPlayerData(Net::MessageIn &msg, - Net::Character *const character) const = 0; - virtual void ping() const = 0; /** The list of available characters. */ static Net::Characters mCharacters; + static CharSelectDialog *mCharSelectDialog; + static CharCreateDialog *mCharCreateDialog; + + /** The selected character. */ + static Net::Character *mSelectedCharacter; + + static void updateCharSelectDialog(); + static void unlockCharSelectDialog(); + protected: CharServerHandler() { @@ -102,15 +108,6 @@ class CharServerHandler notfinal mCharSelectDialog = nullptr; mCharCreateDialog = nullptr; } - - static void updateCharSelectDialog(); - static void unlockCharSelectDialog(); - - /** The selected character. */ - static Net::Character *mSelectedCharacter; - - static CharSelectDialog *mCharSelectDialog; - static CharCreateDialog *mCharCreateDialog; }; } // namespace Net |