summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
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