diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-17 14:51:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-17 14:51:23 +0300 |
commit | c4802097dec05ca39e395e7dba3a55dba70edbe8 (patch) | |
tree | b78e4d197a6e88dd646bc46b1c00286f97c63011 /src/net/charserverhandler.h | |
parent | e0bd37fd01e8c14bf6d044382ac12cc11f5eaa43 (diff) | |
download | mv-c4802097dec05ca39e395e7dba3a55dba70edbe8.tar.gz mv-c4802097dec05ca39e395e7dba3a55dba70edbe8.tar.bz2 mv-c4802097dec05ca39e395e7dba3a55dba70edbe8.tar.xz mv-c4802097dec05ca39e395e7dba3a55dba70edbe8.zip |
Add static in chatserverhandler.
Diffstat (limited to 'src/net/charserverhandler.h')
-rw-r--r-- | src/net/charserverhandler.h | 31 |
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 |