summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-24 16:07:00 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-24 16:13:52 +0300
commit4ea298eef5d60e7101844add7f352d4539ea9dd7 (patch)
tree7740d13253264dbaaff8a9b05092606ac4e7ead5 /src/net
parentfa438213238272cce9a120da849d6c6a7157e107 (diff)
downloadplus-4ea298eef5d60e7101844add7f352d4539ea9dd7.tar.gz
plus-4ea298eef5d60e7101844add7f352d4539ea9dd7.tar.bz2
plus-4ea298eef5d60e7101844add7f352d4539ea9dd7.tar.xz
plus-4ea298eef5d60e7101844add7f352d4539ea9dd7.zip
Rename bank receive handler into bankrecv.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/bankhandler.cpp8
-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
3 files changed, 10 insertions, 10 deletions
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