summaryrefslogtreecommitdiff
path: root/src/net/eathena/battlegroundhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-02 20:58:41 +0300
commit84d2bab38202cd52b5eb0a37c12204ab6f607915 (patch)
tree2f3951b2f4f3b75f190eb2539979cc4afbace27c /src/net/eathena/battlegroundhandler.cpp
parent40730c4fa73d403cf7284a76d9b26f7ec662afa4 (diff)
downloadmanaplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.gz
manaplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.bz2
manaplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.tar.xz
manaplus-84d2bab38202cd52b5eb0a37c12204ab6f607915.zip
Remove MessageHandler class
Diffstat (limited to 'src/net/eathena/battlegroundhandler.cpp')
-rw-r--r--src/net/eathena/battlegroundhandler.cpp57
1 files changed, 1 insertions, 56 deletions
diff --git a/src/net/eathena/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp
index 1a8403444..997338659 100644
--- a/src/net/eathena/battlegroundhandler.cpp
+++ b/src/net/eathena/battlegroundhandler.cpp
@@ -31,66 +31,11 @@ extern Net::BattleGroundHandler *battleGroundHandler;
namespace EAthena
{
-BattleGroundHandler::BattleGroundHandler() :
- MessageHandler()
+BattleGroundHandler::BattleGroundHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_BATTLE_EMBLEM,
- SMSG_BATTLE_UPDATE_SCORE,
- SMSG_BATTLE_UPDATE_COORDS,
- SMSG_BATTLE_PLAY,
- SMSG_BATTLE_QUEUE_ACK,
- SMSG_BATTLE_BEGINS,
- SMSG_BATTLE_NOTICE_DELETE,
- SMSG_BATTLE_JOINED,
- 0
- };
- handledMessages = _messages;
battleGroundHandler = this;
}
-void BattleGroundHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_BATTLE_EMBLEM:
- BattleGroundRecv::processBattleEmblem(msg);
- break;
-
- case SMSG_BATTLE_UPDATE_SCORE:
- BattleGroundRecv::processBattleUpdateScore(msg);
- break;
-
- case SMSG_BATTLE_UPDATE_COORDS:
- BattleGroundRecv::processBattleUpdateCoords(msg);
- break;
-
- case SMSG_BATTLE_PLAY:
- BattleGroundRecv::processBattlePlay(msg);
- break;
-
- case SMSG_BATTLE_QUEUE_ACK:
- BattleGroundRecv::processBattleQueueAck(msg);
- break;
-
- case SMSG_BATTLE_BEGINS:
- BattleGroundRecv::processBattleBegins(msg);
- break;
-
- case SMSG_BATTLE_NOTICE_DELETE:
- BattleGroundRecv::processBattleNoticeDelete(msg);
- break;
-
- case SMSG_BATTLE_JOINED:
- BattleGroundRecv::processBattleJoined(msg);
- break;
-
- default:
- break;
- }
-}
-
void BattleGroundHandler::registerBg(const BattleGroundTypeT &type,
const std::string &name) const
{