summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-09 02:30:39 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-09 02:30:39 +0300
commit3ad5dc250eec4fb091840e3834cbc12573e923df (patch)
treed7419c55775f43e93521e40111d8f5d35972faf9 /src/net/tmwa
parente25a225565c979d96ffcd6e2336f549631c58896 (diff)
downloadmanaverse-3ad5dc250eec4fb091840e3834cbc12573e923df.tar.gz
manaverse-3ad5dc250eec4fb091840e3834cbc12573e923df.tar.bz2
manaverse-3ad5dc250eec4fb091840e3834cbc12573e923df.tar.xz
manaverse-3ad5dc250eec4fb091840e3834cbc12573e923df.zip
Impliment packet CMSG_CLAN_MESSAGE 0x098d.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/clanhandler.cpp43
-rw-r--r--src/net/tmwa/clanhandler.h44
-rw-r--r--src/net/tmwa/generalhandler.cpp3
-rw-r--r--src/net/tmwa/generalhandler.h2
4 files changed, 92 insertions, 0 deletions
diff --git a/src/net/tmwa/clanhandler.cpp b/src/net/tmwa/clanhandler.cpp
new file mode 100644
index 000000000..6f27b1d19
--- /dev/null
+++ b/src/net/tmwa/clanhandler.cpp
@@ -0,0 +1,43 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2018 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "net/tmwa/clanhandler.h"
+
+#include "debug.h"
+
+namespace TmwAthena
+{
+
+ClanHandler::ClanHandler() :
+ Net::ClanHandler()
+{
+ clanHandler = this;
+}
+
+ClanHandler::~ClanHandler()
+{
+ clanHandler = nullptr;
+}
+
+void ClanHandler::chat(const std::string &restrict text A_UNUSED) const
+{
+}
+
+} // namespace TmwAthena
diff --git a/src/net/tmwa/clanhandler.h b/src/net/tmwa/clanhandler.h
new file mode 100644
index 000000000..138cc52db
--- /dev/null
+++ b/src/net/tmwa/clanhandler.h
@@ -0,0 +1,44 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2018 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef NET_TMWA_CLANHANDLER_H
+#define NET_TMWA_CLANHANDLER_H
+
+#include "net/clanhandler.h"
+
+namespace TmwAthena
+{
+
+class ClanHandler final : public Net::ClanHandler
+{
+ public:
+ ClanHandler();
+
+ A_DELETE_COPY(ClanHandler)
+
+ ~ClanHandler() override final;
+
+ void chat(const std::string &restrict text A_UNUSED) const
+ override final;
+};
+
+} // namespace TmwAthena
+
+#endif // NET_TMWA_CLANHANDLER_H
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index 5a77f8253..f61342e5f 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -34,6 +34,7 @@
#include "net/tmwa/beinghandler.h"
#include "net/tmwa/buysellhandler.h"
#include "net/tmwa/chathandler.h"
+#include "net/tmwa/clanhandler.h"
#include "net/tmwa/charserverhandler.h"
#include "net/tmwa/gamehandler.h"
#include "net/tmwa/guildhandler.h"
@@ -82,6 +83,7 @@ GeneralHandler::GeneralHandler() :
mBuySellHandler(new BuySellHandler),
mCharServerHandler(new CharServerHandler),
mChatHandler(new ChatHandler),
+ mClanHandler(new ClanHandler),
mGameHandler(new GameHandler),
mGuildHandler(new GuildHandler),
mInventoryHandler(new InventoryHandler),
@@ -125,6 +127,7 @@ GeneralHandler::~GeneralHandler()
delete2(mBuySellHandler);
delete2(mCharServerHandler);
delete2(mChatHandler);
+ delete2(mClanHandler);
delete2(mGameHandler);
delete2(mGuildHandler);
delete2(mInventoryHandler);
diff --git a/src/net/tmwa/generalhandler.h b/src/net/tmwa/generalhandler.h
index 72f4228fc..8c80c504f 100644
--- a/src/net/tmwa/generalhandler.h
+++ b/src/net/tmwa/generalhandler.h
@@ -32,6 +32,7 @@ class BeingHandler;
class BuySellHandler;
class CharServerHandler;
class ChatHandler;
+class ClanHandler;
class GameHandler;
class GuildHandler;
class InventoryHandler;
@@ -96,6 +97,7 @@ class GeneralHandler final : public Net::GeneralHandler
BuySellHandler *mBuySellHandler;
CharServerHandler *mCharServerHandler;
ChatHandler *mChatHandler;
+ ClanHandler *mClanHandler;
GameHandler *mGameHandler;
GuildHandler *mGuildHandler;
InventoryHandler *mInventoryHandler;