diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-24 16:07:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-24 16:13:52 +0300 |
commit | 4ea298eef5d60e7101844add7f352d4539ea9dd7 (patch) | |
tree | 7740d13253264dbaaff8a9b05092606ac4e7ead5 | |
parent | fa438213238272cce9a120da849d6c6a7157e107 (diff) | |
download | manaverse-4ea298eef5d60e7101844add7f352d4539ea9dd7.tar.gz manaverse-4ea298eef5d60e7101844add7f352d4539ea9dd7.tar.bz2 manaverse-4ea298eef5d60e7101844add7f352d4539ea9dd7.tar.xz manaverse-4ea298eef5d60e7101844add7f352d4539ea9dd7.zip |
Rename bank receive handler into bankrecv.
-rw-r--r-- | src/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/net/eathena/bankhandler.cpp | 8 | ||||
-rw-r--r-- | src/net/eathena/bankrecv.cpp (renamed from src/net/eathena/bank.cpp) | 8 | ||||
-rw-r--r-- | src/net/eathena/bankrecv.h (renamed from src/net/eathena/bank.h) | 4 |
5 files changed, 14 insertions, 14 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f388d94a3..e79ab1992 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1526,8 +1526,8 @@ SET(SRCS_EATHENA net/eathena/auctionrecv.h net/eathena/auctionhandler.cpp net/eathena/auctionhandler.h - net/eathena/bank.cpp - net/eathena/bank.h + net/eathena/bankrecv.cpp + net/eathena/bankrecv.h net/eathena/bankhandler.cpp net/eathena/bankhandler.h net/eathena/battleground.cpp diff --git a/src/Makefile.am b/src/Makefile.am index 1df31cea8..d77c442d2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1372,8 +1372,8 @@ manaplus_SOURCES += gui/windows/bankwindow.cpp \ net/eathena/auctionrecv.h \ net/eathena/auctionhandler.cpp \ net/eathena/auctionhandler.h \ - net/eathena/bank.cpp \ - net/eathena/bank.h \ + net/eathena/bankrecv.cpp \ + net/eathena/bankrecv.h \ net/eathena/bankhandler.cpp \ net/eathena/bankhandler.h \ net/eathena/battleground.cpp \ diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp index 1897b7a9a..f4be79dec 100644 --- a/src/net/eathena/bankhandler.cpp +++ b/src/net/eathena/bankhandler.cpp @@ -26,7 +26,7 @@ #include "listeners/banklistener.h" -#include "net/eathena/bank.h" +#include "net/eathena/bankrecv.h" #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" @@ -56,15 +56,15 @@ void BankHandler::handleMessage(Net::MessageIn &msg) switch (msg.getId()) { case SMSG_BANK_STATUS: - Bank::processBankStatus(msg); + BankRecv::processBankStatus(msg); break; case SMSG_BANK_DEPOSIT: - Bank::processBankDeposit(msg); + BankRecv::processBankDeposit(msg); break; case SMSG_BANK_WITHDRAW: - Bank::processBankWithdraw(msg); + BankRecv::processBankWithdraw(msg); break; default: diff --git a/src/net/eathena/bank.cpp b/src/net/eathena/bankrecv.cpp index 4e1f74f9c..d50984dcf 100644 --- a/src/net/eathena/bank.cpp +++ b/src/net/eathena/bankrecv.cpp @@ -18,7 +18,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "net/eathena/bank.h" +#include "net/eathena/bankrecv.h" #include "notifymanager.h" @@ -31,14 +31,14 @@ namespace EAthena { -void Bank::processBankStatus(Net::MessageIn &msg) +void BankRecv::processBankStatus(Net::MessageIn &msg) { const int money = static_cast<int>(msg.readInt64("money")); msg.readInt16("reason"); BankListener::distributeEvent(money); } -void Bank::processBankDeposit(Net::MessageIn &msg) +void BankRecv::processBankDeposit(Net::MessageIn &msg) { const int reason = msg.readInt16("reason"); const int money = static_cast<int>(msg.readInt64("money")); @@ -48,7 +48,7 @@ void Bank::processBankDeposit(Net::MessageIn &msg) NotifyManager::notify(NotifyTypes::BANK_DEPOSIT_FAILED); } -void Bank::processBankWithdraw(Net::MessageIn &msg) +void BankRecv::processBankWithdraw(Net::MessageIn &msg) { const int reason = msg.readInt16("reason"); const int money = static_cast<int>(msg.readInt64("money")); diff --git a/src/net/eathena/bank.h b/src/net/eathena/bankrecv.h index ffc24a04d..95bf8e1da 100644 --- a/src/net/eathena/bank.h +++ b/src/net/eathena/bankrecv.h @@ -29,12 +29,12 @@ namespace EAthena { - namespace Bank + namespace BankRecv { void processBankStatus(Net::MessageIn &msg); void processBankDeposit(Net::MessageIn &msg); void processBankWithdraw(Net::MessageIn &msg); - } // namespace Bank + } // namespace BankRecv } // namespace EAthena #endif // EATHENA_SUPPORT |