diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-20 18:28:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-20 18:28:49 +0300 |
commit | 2f879820ee0e07b94a7c8189b8b7ab0720c3e208 (patch) | |
tree | 0d9c1a55cfb304c5e3fa5ea81b0202cb0e7f307d /src/net/ea/partyhandler.cpp | |
parent | d4b88a7ebce6222c34928c49925f972515593e89 (diff) | |
download | manaplus-2f879820ee0e07b94a7c8189b8b7ab0720c3e208.tar.gz manaplus-2f879820ee0e07b94a7c8189b8b7ab0720c3e208.tar.bz2 manaplus-2f879820ee0e07b94a7c8189b8b7ab0720c3e208.tar.xz manaplus-2f879820ee0e07b94a7c8189b8b7ab0720c3e208.zip |
Move partyshare into separate file.
Diffstat (limited to 'src/net/ea/partyhandler.cpp')
-rw-r--r-- | src/net/ea/partyhandler.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index 51ef473f1..be672f760 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -47,8 +47,8 @@ PartyTab *partyTab = nullptr; Party *taParty = nullptr; PartyHandler::PartyHandler() : - mShareExp(PARTY_SHARE_UNKNOWN), - mShareItems(PARTY_SHARE_UNKNOWN) + mShareExp(Net::PartyShare::UNKNOWN), + mShareItems(Net::PartyShare::UNKNOWN) { taParty = Party::getParty(1); } @@ -253,22 +253,22 @@ void PartyHandler::processPartySettings(Net::MessageIn &msg) switch (exp) { - case PARTY_SHARE: - if (mShareExp == PARTY_SHARE) + case Net::PartyShare::YES: + if (mShareExp == Net::PartyShare::YES) break; - mShareExp = PARTY_SHARE; + mShareExp = Net::PartyShare::YES; NotifyManager::notify(NotifyManager::PARTY_EXP_SHARE_ON); break; - case PARTY_SHARE_NO: - if (mShareExp == PARTY_SHARE_NO) + case Net::PartyShare::NO: + if (mShareExp == Net::PartyShare::NO) break; - mShareExp = PARTY_SHARE_NO; + mShareExp = Net::PartyShare::NO; NotifyManager::notify(NotifyManager::PARTY_EXP_SHARE_OFF); break; - case PARTY_SHARE_NOT_POSSIBLE: - if (mShareExp == PARTY_SHARE_NOT_POSSIBLE) + case Net::PartyShare::NOT_POSSIBLE: + if (mShareExp == Net::PartyShare::NOT_POSSIBLE) break; - mShareExp = PARTY_SHARE_NOT_POSSIBLE; + mShareExp = Net::PartyShare::NOT_POSSIBLE; NotifyManager::notify(NotifyManager::PARTY_EXP_SHARE_ERROR); break; default: @@ -278,22 +278,22 @@ void PartyHandler::processPartySettings(Net::MessageIn &msg) switch (item) { - case PARTY_SHARE: - if (mShareItems == PARTY_SHARE) + case Net::PartyShare::YES: + if (mShareItems == Net::PartyShare::YES) break; - mShareItems = PARTY_SHARE; + mShareItems = Net::PartyShare::YES; NotifyManager::notify(NotifyManager::PARTY_ITEM_SHARE_ON); break; - case PARTY_SHARE_NO: - if (mShareItems == PARTY_SHARE_NO) + case Net::PartyShare::NO: + if (mShareItems == Net::PartyShare::NO) break; - mShareItems = PARTY_SHARE_NO; + mShareItems = Net::PartyShare::NO; NotifyManager::notify(NotifyManager::PARTY_ITEM_SHARE_OFF); break; - case PARTY_SHARE_NOT_POSSIBLE: - if (mShareItems == PARTY_SHARE_NOT_POSSIBLE) + case Net::PartyShare::NOT_POSSIBLE: + if (mShareItems == Net::PartyShare::NOT_POSSIBLE) break; - mShareItems = PARTY_SHARE_NOT_POSSIBLE; + mShareItems = Net::PartyShare::NOT_POSSIBLE; NotifyManager::notify(NotifyManager::PARTY_ITEM_SHARE_ERROR); break; default: |