diff options
Diffstat (limited to 'src/net/eathena')
84 files changed, 208 insertions, 462 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index 6a938a478..5b19f912b 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -22,8 +22,6 @@ #include "net/eathena/adminhandler.h" -#include "logger.h" - #include "being/being.h" #include "net/ea/adminrecv.h" diff --git a/src/net/eathena/adminrecv.cpp b/src/net/eathena/adminrecv.cpp index e88843c79..57ddf11e7 100644 --- a/src/net/eathena/adminrecv.cpp +++ b/src/net/eathena/adminrecv.cpp @@ -22,10 +22,7 @@ #include "logger.h" -#include "being/being.h" - -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" +#include "net/messagein.h" #include "debug.h" diff --git a/src/net/eathena/adminrecv.h b/src/net/eathena/adminrecv.h index 5be80e996..e2f4f359c 100644 --- a/src/net/eathena/adminrecv.h +++ b/src/net/eathena/adminrecv.h @@ -18,10 +18,13 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef NET_EATHENA_ADMIN_H -#define NET_EATHENA_ADMIN_H +#ifndef NET_EATHENA_ADMINRECV_H +#define NET_EATHENA_ADMINRECV_H -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { @@ -33,4 +36,4 @@ namespace EAthena } // namespace Admin } // namespace EAthena -#endif // NET_EATHENA_ADMIN_H +#endif // NET_EATHENA_ADMINRECV_H diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp index ddce77077..e84a29cec 100644 --- a/src/net/eathena/auctionhandler.cpp +++ b/src/net/eathena/auctionhandler.cpp @@ -21,7 +21,6 @@ #include "net/eathena/auctionhandler.h" #include "item.h" -#include "logger.h" #include "net/ea/eaprotocol.h" diff --git a/src/net/eathena/auctionrecv.cpp b/src/net/eathena/auctionrecv.cpp index 4f1beddec..d4e24f8e7 100644 --- a/src/net/eathena/auctionrecv.cpp +++ b/src/net/eathena/auctionrecv.cpp @@ -22,7 +22,7 @@ #include "logger.h" -#include "net/eathena/messagein.h" +#include "net/messagein.h" #include "debug.h" diff --git a/src/net/eathena/auctionrecv.h b/src/net/eathena/auctionrecv.h index 583e873b9..cdd04b518 100644 --- a/src/net/eathena/auctionrecv.h +++ b/src/net/eathena/auctionrecv.h @@ -18,14 +18,15 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef NET_EATHENA_AUCTION_H -#define NET_EATHENA_AUCTION_H +#ifndef NET_EATHENA_AUCTIONRECV_H +#define NET_EATHENA_AUCTIONRECV_H #ifdef EATHENA_SUPPORT -#include "net/auctionhandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { @@ -40,4 +41,4 @@ namespace EAthena } // namespace EAthena #endif // EATHENA_SUPPORT -#endif // NET_EATHENA_AUCTION_H +#endif // NET_EATHENA_AUCTIONRECV_H diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp index f4be79dec..48bf2f425 100644 --- a/src/net/eathena/bankhandler.cpp +++ b/src/net/eathena/bankhandler.cpp @@ -20,12 +20,6 @@ #include "net/eathena/bankhandler.h" -#include "notifymanager.h" - -#include "enums/resources/notifytypes.h" - -#include "listeners/banklistener.h" - #include "net/eathena/bankrecv.h" #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" diff --git a/src/net/eathena/bankrecv.cpp b/src/net/eathena/bankrecv.cpp index d50984dcf..d70f589ae 100644 --- a/src/net/eathena/bankrecv.cpp +++ b/src/net/eathena/bankrecv.cpp @@ -26,6 +26,8 @@ #include "listeners/banklistener.h" +#include "net/messagein.h" + #include "debug.h" namespace EAthena diff --git a/src/net/eathena/bankrecv.h b/src/net/eathena/bankrecv.h index 95bf8e1da..32b22445c 100644 --- a/src/net/eathena/bankrecv.h +++ b/src/net/eathena/bankrecv.h @@ -18,14 +18,15 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef NET_EATHENA_BANK_H -#define NET_EATHENA_BANK_H +#ifndef NET_EATHENA_BANKRECV_H +#define NET_EATHENA_BANKRECV_H #ifdef EATHENA_SUPPORT -#include "net/bankhandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { @@ -38,4 +39,4 @@ namespace EAthena } // namespace EAthena #endif // EATHENA_SUPPORT -#endif // NET_EATHENA_BANK_H +#endif // NET_EATHENA_BANKRECV_H diff --git a/src/net/eathena/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp index 536c8c850..1a8403444 100644 --- a/src/net/eathena/battlegroundhandler.cpp +++ b/src/net/eathena/battlegroundhandler.cpp @@ -20,8 +20,6 @@ #include "net/eathena/battlegroundhandler.h" -#include "logger.h" - #include "net/eathena/battlegroundrecv.h" #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" diff --git a/src/net/eathena/battlegroundrecv.cpp b/src/net/eathena/battlegroundrecv.cpp index afda89171..72bfe7d3c 100644 --- a/src/net/eathena/battlegroundrecv.cpp +++ b/src/net/eathena/battlegroundrecv.cpp @@ -22,6 +22,8 @@ #include "logger.h" +#include "net/messagein.h" + #include "debug.h" namespace EAthena diff --git a/src/net/eathena/battlegroundrecv.h b/src/net/eathena/battlegroundrecv.h index 43c0e7fe1..912580203 100644 --- a/src/net/eathena/battlegroundrecv.h +++ b/src/net/eathena/battlegroundrecv.h @@ -18,12 +18,15 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef NET_EATHENA_BATTLEGROUND_H -#define NET_EATHENA_BATTLEGROUND_H +#ifndef NET_EATHENA_BATTLEGROUNDRECV_H +#define NET_EATHENA_BATTLEGROUNDRECV_H #ifdef EATHENA_SUPPORT -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { @@ -41,4 +44,4 @@ namespace EAthena } // namespace EAthena #endif // EATHENA_SUPPORT -#endif // NET_EATHENA_BATTLEGROUND_H +#endif // NET_EATHENA_BATTLEGROUNDRECV_H diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 6273d2202..664ccdca5 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -22,48 +22,13 @@ #include "net/eathena/beinghandler.h" -#include "actormanager.h" -#include "effectmanager.h" -#include "game.h" -#include "itemcolormanager.h" -#include "notifymanager.h" -#include "party.h" - -#include "being/mercenaryinfo.h" - -#include "enums/resources/notifytypes.h" - -#include "particle/particle.h" - -#include "input/keyboardconfig.h" - -#include "gui/windows/skilldialog.h" -#include "gui/windows/socialwindow.h" -#include "gui/windows/outfitwindow.h" - -#include "net/serverfeatures.h" - -#include "net/ea/eaprotocol.h" - -#include "net/charserverhandler.h" - -#include "net/character.h" - #include "net/ea/beingrecv.h" #include "net/eathena/beingrecv.h" -#include "net/eathena/maptypeproperty2.h" #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" #include "net/eathena/sprite.h" -#include "resources/iteminfo.h" -#include "resources/db/itemdb.h" - -#include "resources/map/map.h" - -#include "utils/timer.h" - #include "debug.h" extern Net::BeingHandler *beingHandler; diff --git a/src/net/eathena/beinghandler.h b/src/net/eathena/beinghandler.h index 1a439c807..d47ec2f98 100644 --- a/src/net/eathena/beinghandler.h +++ b/src/net/eathena/beinghandler.h @@ -25,7 +25,6 @@ #include "net/ea/beinghandler.h" -#include "net/eathena/beingtype.h" #include "net/eathena/messagehandler.h" namespace EAthena diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp index c9c942023..977e95696 100644 --- a/src/net/eathena/beingrecv.cpp +++ b/src/net/eathena/beingrecv.cpp @@ -49,10 +49,9 @@ #include "net/charserverhandler.h" #include "net/character.h" +#include "net/messagein.h" #include "net/eathena/maptypeproperty2.h" -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" #include "net/eathena/sprite.h" #include "resources/iteminfo.h" @@ -136,7 +135,7 @@ void BeingRecv::processBeingChangeLookContinue(Net::MessageIn &msg, const uint8_t type, const int id, const int id2, - const int *cards A_UNUSED) + const int *cards) { if (dstBeing->getType() == ActorType::Player) dstBeing->setOtherTime(); @@ -322,7 +321,8 @@ void BeingRecv::processBeingVisible(Net::MessageIn &msg) const uint16_t headTop = msg.readInt16("head top"); const uint16_t headMid = msg.readInt16("head mid"); - const ItemColor hairColor = fromInt(msg.readInt16("hair color"), ItemColor); + const ItemColor hairColor = fromInt(msg.readInt16("hair color"), + ItemColor); const uint16_t shoes = msg.readInt16("shoes or clothes color?"); const uint16_t gloves = msg.readInt16("head dir / gloves"); diff --git a/src/net/eathena/beingrecv.h b/src/net/eathena/beingrecv.h index 137143143..597cd9544 100644 --- a/src/net/eathena/beingrecv.h +++ b/src/net/eathena/beingrecv.h @@ -20,13 +20,31 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef NET_EATHENA_BEING_H -#define NET_EATHENA_BEING_H - -#include "net/ea/beinghandler.h" +#ifndef NET_EATHENA_BEINGRECV_H +#define NET_EATHENA_BEINGRECV_H #include "net/eathena/beingtype.h" -#include "net/eathena/messagehandler.h" + +#include "enums/simpletypes/beingid.h" + +#if defined(__GXX_EXPERIMENTAL_CXX0X__) +#if defined(__APPLE__) +#include <tr1/cstdint> +#else +#include <cstdint> +#endif +#else +#include <stdint.h> +#endif + +#include "localconsts.h" + +namespace Net +{ + class MessageIn; +} + +class Being; namespace EAthena { @@ -98,4 +116,4 @@ namespace EAthena } // namespace BeingRecv } // namespace EAthena -#endif // NET_EATHENA_BEING_H +#endif // NET_EATHENA_BEINGRECV_H diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp index 9b990fe7e..c6673e588 100644 --- a/src/net/eathena/buyingstorehandler.cpp +++ b/src/net/eathena/buyingstorehandler.cpp @@ -20,24 +20,11 @@ #include "net/eathena/buyingstorehandler.h" -#include "actormanager.h" -#include "inventory.h" -#include "notifymanager.h" #include "shopitem.h" -#include "being/localplayer.h" +#include "being/being.h" #include "being/playerinfo.h" -#include "enums/resources/notifytypes.h" - -#include "gui/windows/buyingstoreselldialog.h" - -#include "gui/widgets/createwidget.h" - -#include "listeners/arrowslistener.h" -#include "listeners/buyingstoremodelistener.h" -#include "listeners/buyingstoreslotslistener.h" - #include "net/ea/eaprotocol.h" #include "net/eathena/buyingstorerecv.h" diff --git a/src/net/eathena/buyingstorerecv.cpp b/src/net/eathena/buyingstorerecv.cpp index 1a9d3897d..5094abfef 100644 --- a/src/net/eathena/buyingstorerecv.cpp +++ b/src/net/eathena/buyingstorerecv.cpp @@ -22,8 +22,8 @@ #include "actormanager.h" #include "inventory.h" +#include "item.h" #include "notifymanager.h" -#include "shopitem.h" #include "being/localplayer.h" #include "being/playerinfo.h" @@ -38,10 +38,9 @@ #include "listeners/buyingstoremodelistener.h" #include "listeners/buyingstoreslotslistener.h" -#include "net/ea/eaprotocol.h" +#include "net/messagein.h" -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" +#include "net/ea/eaprotocol.h" #include "debug.h" @@ -164,8 +163,7 @@ void BuyingStoreRecv::processBuyingStoreSellFailed(Net::MessageIn &msg) } } -void BuyingStoreRecv::processBuyingStoreSellerSellFailed(Net::MessageIn - &msg) +void BuyingStoreRecv::processBuyingStoreSellerSellFailed(Net::MessageIn &msg) { const int16_t result = msg.readInt16("result"); msg.readInt16("item id"); diff --git a/src/net/eathena/buyingstorerecv.h b/src/net/eathena/buyingstorerecv.h index da4e338e8..df7dc9e11 100644 --- a/src/net/eathena/buyingstorerecv.h +++ b/src/net/eathena/buyingstorerecv.h @@ -23,9 +23,10 @@ #ifdef EATHENA_SUPPORT -#include "net/buyingstorehandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/buysellhandler.cpp b/src/net/eathena/buysellhandler.cpp index d5027335a..ea15b1ac3 100644 --- a/src/net/eathena/buysellhandler.cpp +++ b/src/net/eathena/buysellhandler.cpp @@ -22,16 +22,6 @@ #include "net/eathena/buysellhandler.h" -#include "notifymanager.h" - -#include "being/playerinfo.h" - -#include "enums/resources/notifytypes.h" - -#include "gui/windows/buydialog.h" - -#include "gui/widgets/createwidget.h" - #include "net/ea/buysellrecv.h" #include "net/eathena/buysellrecv.h" diff --git a/src/net/eathena/buysellrecv.cpp b/src/net/eathena/buysellrecv.cpp index 23786a435..5dfda9937 100644 --- a/src/net/eathena/buysellrecv.cpp +++ b/src/net/eathena/buysellrecv.cpp @@ -34,8 +34,7 @@ #include "net/ea/buysellrecv.h" -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" +#include "net/messagein.h" #include "debug.h" diff --git a/src/net/eathena/buysellrecv.h b/src/net/eathena/buysellrecv.h index 6c524572f..14a4d199e 100644 --- a/src/net/eathena/buysellrecv.h +++ b/src/net/eathena/buysellrecv.h @@ -23,9 +23,10 @@ #ifndef NET_EATHENA_BUYSELLRECV_H #define NET_EATHENA_BUYSELLRECV_H -#include "net/ea/buysellhandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp index 7390ae600..53888cf46 100644 --- a/src/net/eathena/cashshophandler.cpp +++ b/src/net/eathena/cashshophandler.cpp @@ -20,12 +20,6 @@ #include "net/eathena/cashshophandler.h" -#include "being/playerinfo.h" - -#include "gui/windows/buydialog.h" - -#include "gui/widgets/createwidget.h" - #include "net/eathena/cashshoprecv.h" #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" diff --git a/src/net/eathena/cashshophandler.h b/src/net/eathena/cashshophandler.h index fd776c923..e5f057663 100644 --- a/src/net/eathena/cashshophandler.h +++ b/src/net/eathena/cashshophandler.h @@ -27,8 +27,6 @@ #include "net/eathena/messagehandler.h" -class BuyDialog; - namespace EAthena { class CashShopHandler final : public MessageHandler, diff --git a/src/net/eathena/cashshoprecv.cpp b/src/net/eathena/cashshoprecv.cpp index a25a44406..3cf22fcec 100644 --- a/src/net/eathena/cashshoprecv.cpp +++ b/src/net/eathena/cashshoprecv.cpp @@ -20,14 +20,15 @@ #include "net/eathena/cashshoprecv.h" +#include "logger.h" + #include "being/playerinfo.h" #include "gui/windows/buydialog.h" #include "gui/widgets/createwidget.h" -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" +#include "net/messagein.h" #include "debug.h" diff --git a/src/net/eathena/cashshoprecv.h b/src/net/eathena/cashshoprecv.h index 1dee0df5f..464fcee51 100644 --- a/src/net/eathena/cashshoprecv.h +++ b/src/net/eathena/cashshoprecv.h @@ -23,9 +23,10 @@ #ifdef EATHENA_SUPPORT -#include "net/cashshophandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} class BuyDialog; diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 83c3c7c4c..1fe9b1268 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -22,18 +22,9 @@ #include "net/eathena/charserverhandler.h" -#include "client.h" -#include "configuration.h" -#include "settings.h" - #include "gui/windows/charcreatedialog.h" -#include "gui/windows/charselectdialog.h" -#include "gui/windows/okdialog.h" - -#include "gui/widgets/createwidget.h" #include "net/character.h" -#include "net/playerhandler.h" #include "net/serverfeatures.h" #include "net/ea/token.h" @@ -41,19 +32,10 @@ #include "net/ea/charserverrecv.h" #include "net/eathena/charserverrecv.h" -#include "net/eathena/gamehandler.h" #include "net/eathena/loginhandler.h" #include "net/eathena/messageout.h" #include "net/eathena/network.h" #include "net/eathena/protocol.h" -#include "net/eathena/sprite.h" - -#include "resources/iteminfo.h" - -#include "resources/db/itemdb.h" - -#include "utils/dtor.h" -#include "utils/gettext.h" #include "debug.h" diff --git a/src/net/eathena/charserverrecv.cpp b/src/net/eathena/charserverrecv.cpp index 62be4a694..2b908e794 100644 --- a/src/net/eathena/charserverrecv.cpp +++ b/src/net/eathena/charserverrecv.cpp @@ -38,6 +38,8 @@ #include "net/ea/token.h" +#include "net/messagein.h" + #include "net/eathena/gamehandler.h" #include "net/eathena/loginhandler.h" #include "net/eathena/messageout.h" diff --git a/src/net/eathena/charserverrecv.h b/src/net/eathena/charserverrecv.h index 1df9a7e5e..b98885be4 100644 --- a/src/net/eathena/charserverrecv.h +++ b/src/net/eathena/charserverrecv.h @@ -23,9 +23,15 @@ #ifndef NET_EATHENA_CHARSERVERRECV_H #define NET_EATHENA_CHARSERVERRECV_H -#include "net/ea/charserverhandler.h" +#include "enums/simpletypes/beingid.h" -#include "net/eathena/messagehandler.h" +#include <string> + +namespace Net +{ + class Character; + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 5501f25ab..9ef9b5d3b 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -22,23 +22,8 @@ #include "net/eathena/chathandler.h" -#include "actormanager.h" -#include "notifymanager.h" - #include "being/localplayer.h" -#include "being/playerinfo.h" -#include "being/playerrelation.h" -#include "being/playerrelations.h" - -#include "enums/resources/notifytypes.h" - -#include "gui/chatconsts.h" -#include "gui/windows/chatwindow.h" - -#include "gui/widgets/tabs/chat/chattab.h" - -#include "net/mercenaryhandler.h" #include "net/serverfeatures.h" #include "net/ea/chatrecv.h" @@ -48,7 +33,7 @@ #include "net/eathena/protocol.h" #include "resources/chatobject.h" -#include "utils/gettext.h" + #include "utils/stringutils.h" #include "debug.h" diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h index 7fd56cd3c..a9a92452e 100644 --- a/src/net/eathena/chathandler.h +++ b/src/net/eathena/chathandler.h @@ -25,8 +25,6 @@ #include "net/ea/chathandler.h" -#include "enums/gui/chatmsgtype.h" - #include "net/eathena/messagehandler.h" namespace EAthena diff --git a/src/net/eathena/chatrecv.cpp b/src/net/eathena/chatrecv.cpp index f058593c9..40281384a 100644 --- a/src/net/eathena/chatrecv.cpp +++ b/src/net/eathena/chatrecv.cpp @@ -38,13 +38,11 @@ #include "gui/widgets/tabs/chat/chattab.h" -#include "net/serverfeatures.h" +#include "net/messagein.h" #include "net/ea/chatrecv.h" #include "net/eathena/mercenaryrecv.h" -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" #include "resources/chatobject.h" #include "utils/gettext.h" @@ -52,8 +50,6 @@ #include "debug.h" -extern Net::ChatHandler *chatHandler; - namespace EAthena { @@ -239,7 +235,7 @@ std::string ChatRecv::extractChannelFromMessage(std::string &chatMsg) } void ChatRecv::processChatContinue(std::string chatMsg, - ChatMsgTypeT own) + ChatMsgTypeT own) { const std::string channel = extractChannelFromMessage(chatMsg); bool allow(true); @@ -466,7 +462,7 @@ void ChatRecv::processJoinChannel(Net::MessageIn &msg) } void ChatRecv::processWhisperContinue(const std::string &nick, - std::string chatMsg) + std::string chatMsg) { // ignoring future whisper messages if (chatMsg.find("\302\202G") == 0 || chatMsg.find("\302\202A") == 0) diff --git a/src/net/eathena/chatrecv.h b/src/net/eathena/chatrecv.h index fcef0085e..d05af44cd 100644 --- a/src/net/eathena/chatrecv.h +++ b/src/net/eathena/chatrecv.h @@ -23,16 +23,17 @@ #ifndef NET_EATHENA_CHATRECV_H #define NET_EATHENA_CHATRECV_H -#include "net/ea/chathandler.h" - #include "enums/gui/chatmsgtype.h" -#include "net/eathena/messagehandler.h" +#include <string> -namespace EAthena +namespace Net { - class MessageOut; + class MessageIn; +} +namespace EAthena +{ namespace ChatRecv { std::string extractChannelFromMessage(std::string &chatMsg); diff --git a/src/net/eathena/elementalhandler.cpp b/src/net/eathena/elementalhandler.cpp index 1ddbb491f..44c1437a8 100644 --- a/src/net/eathena/elementalhandler.cpp +++ b/src/net/eathena/elementalhandler.cpp @@ -20,8 +20,6 @@ #include "net/eathena/elementalhandler.h" -#include "logger.h" - #include "net/eathena/elementalrecv.h" #include "net/eathena/protocol.h" diff --git a/src/net/eathena/elementalrecv.cpp b/src/net/eathena/elementalrecv.cpp index 151e23804..5e07a7752 100644 --- a/src/net/eathena/elementalrecv.cpp +++ b/src/net/eathena/elementalrecv.cpp @@ -22,7 +22,7 @@ #include "logger.h" -#include "net/eathena/protocol.h" +#include "net/messagein.h" #include "debug.h" diff --git a/src/net/eathena/elementalrecv.h b/src/net/eathena/elementalrecv.h index 0b0a2651f..00bbca8e9 100644 --- a/src/net/eathena/elementalrecv.h +++ b/src/net/eathena/elementalrecv.h @@ -21,9 +21,10 @@ #ifndef NET_EATHENA_ELEMENTALRECV_H #define NET_EATHENA_ELEMENTALRECV_H -#include "net/elementalhandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/familyhandler.cpp b/src/net/eathena/familyhandler.cpp index b0cf00031..8d4949b4f 100644 --- a/src/net/eathena/familyhandler.cpp +++ b/src/net/eathena/familyhandler.cpp @@ -20,8 +20,6 @@ #include "net/eathena/familyhandler.h" -#include "logger.h" - #include "being/being.h" #include "net/eathena/familyrecv.h" diff --git a/src/net/eathena/familyrecv.cpp b/src/net/eathena/familyrecv.cpp index 76fae2ff2..70919a97b 100644 --- a/src/net/eathena/familyrecv.cpp +++ b/src/net/eathena/familyrecv.cpp @@ -22,10 +22,7 @@ #include "logger.h" -#include "being/being.h" - -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" +#include "net/messagein.h" #include "debug.h" diff --git a/src/net/eathena/familyrecv.h b/src/net/eathena/familyrecv.h index e1f5560e7..51523b6e2 100644 --- a/src/net/eathena/familyrecv.h +++ b/src/net/eathena/familyrecv.h @@ -23,9 +23,10 @@ #ifdef EATHENA_SUPPORT -#include "net/familyhandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/friendshandler.cpp b/src/net/eathena/friendshandler.cpp index a2e01bc79..8d07aa94d 100644 --- a/src/net/eathena/friendshandler.cpp +++ b/src/net/eathena/friendshandler.cpp @@ -20,8 +20,6 @@ #include "net/eathena/friendshandler.h" -#include "logger.h" - #include "net/eathena/friendsrecv.h" #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" diff --git a/src/net/eathena/friendsrecv.cpp b/src/net/eathena/friendsrecv.cpp index 41994dd15..4350d31c9 100644 --- a/src/net/eathena/friendsrecv.cpp +++ b/src/net/eathena/friendsrecv.cpp @@ -22,8 +22,7 @@ #include "logger.h" -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" +#include "net/messagein.h" #include "debug.h" diff --git a/src/net/eathena/friendsrecv.h b/src/net/eathena/friendsrecv.h index d502343da..bdd564244 100644 --- a/src/net/eathena/friendsrecv.h +++ b/src/net/eathena/friendsrecv.h @@ -23,9 +23,10 @@ #ifdef EATHENA_SUPPORT -#include "net/friendshandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp index 2d4f7d20f..dde0a10d5 100644 --- a/src/net/eathena/gamehandler.cpp +++ b/src/net/eathena/gamehandler.cpp @@ -23,7 +23,6 @@ #include "net/eathena/gamehandler.h" #include "client.h" -#include "logger.h" #include "being/localplayer.h" diff --git a/src/net/eathena/gamerecv.cpp b/src/net/eathena/gamerecv.cpp index e86411712..43c52ba61 100644 --- a/src/net/eathena/gamerecv.cpp +++ b/src/net/eathena/gamerecv.cpp @@ -27,14 +27,9 @@ #include "being/localplayer.h" -#include "net/serverfeatures.h" +#include "net/messagein.h" -#include "net/ea/token.h" - -#include "net/eathena/loginhandler.h" -#include "net/eathena/messageout.h" #include "net/eathena/network.h" -#include "net/eathena/protocol.h" #include "debug.h" diff --git a/src/net/eathena/gamerecv.h b/src/net/eathena/gamerecv.h index 4fa9aa723..ae19058eb 100644 --- a/src/net/eathena/gamerecv.h +++ b/src/net/eathena/gamerecv.h @@ -23,9 +23,10 @@ #ifndef NET_EATHENA_GAMERECV_H #define NET_EATHENA_GAMERECV_H -#include "net/eathena/messagehandler.h" - -#include "net/ea/gamehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/generalrecv.cpp b/src/net/eathena/generalrecv.cpp index bdee78d7d..ff5809028 100644 --- a/src/net/eathena/generalrecv.cpp +++ b/src/net/eathena/generalrecv.cpp @@ -23,53 +23,10 @@ #include "net/eathena/generalrecv.h" #include "client.h" -#include "configuration.h" +#include "logger.h" -#include "gui/windows/skilldialog.h" -#include "gui/windows/socialwindow.h" -#include "gui/windows/statuswindow.h" +#include "net/messagein.h" -#include "gui/widgets/tabs/chat/guildtab.h" -#include "gui/widgets/tabs/chat/partytab.h" - -#include "net/eathena/adminhandler.h" -#include "net/eathena/auctionhandler.h" -#include "net/eathena/bankhandler.h" -#include "net/eathena/beinghandler.h" -#include "net/eathena/buyingstorehandler.h" -#include "net/eathena/buysellhandler.h" -#include "net/eathena/cashshophandler.h" -#include "net/eathena/chathandler.h" -#include "net/eathena/charserverhandler.h" -#include "net/eathena/elementalhandler.h" -#include "net/eathena/familyhandler.h" -#include "net/eathena/friendshandler.h" -#include "net/eathena/gamehandler.h" -#include "net/eathena/guildhandler.h" -#include "net/eathena/homunculushandler.h" -#include "net/eathena/inventoryhandler.h" -#include "net/eathena/itemhandler.h" -#include "net/eathena/loginhandler.h" -#include "net/eathena/mailhandler.h" -#include "net/eathena/markethandler.h" -#include "net/eathena/mercenaryhandler.h" -#include "net/eathena/network.h" -#include "net/eathena/npchandler.h" -#include "net/eathena/partyhandler.h" -#include "net/eathena/pethandler.h" -#include "net/eathena/playerhandler.h" -#include "net/eathena/protocol.h" -#include "net/eathena/roulettehandler.h" -#include "net/eathena/searchstorehandler.h" -#include "net/eathena/serverfeatures.h" -#include "net/eathena/tradehandler.h" -#include "net/eathena/skillhandler.h" -#include "net/eathena/questhandler.h" -#include "net/eathena/vendinghandler.h" - -#include "resources/db/itemdbstat.h" - -#include "utils/delete2.h" #include "utils/gettext.h" #include "debug.h" diff --git a/src/net/eathena/generalrecv.h b/src/net/eathena/generalrecv.h index d18c81a09..0e0770893 100644 --- a/src/net/eathena/generalrecv.h +++ b/src/net/eathena/generalrecv.h @@ -23,9 +23,10 @@ #ifndef NET_EATHENA_GENERALRECV_H #define NET_EATHENA_GENERALRECV_H -#include "net/generalhandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp index d6a07091d..64801f265 100644 --- a/src/net/eathena/guildhandler.cpp +++ b/src/net/eathena/guildhandler.cpp @@ -22,18 +22,10 @@ #include "net/eathena/guildhandler.h" #include "actormanager.h" -#include "configuration.h" #include "being/localplayer.h" #include "being/playerinfo.h" -#include "gui/windows/chatwindow.h" -#include "gui/windows/socialwindow.h" - -#include "gui/widgets/tabs/chat/guildtab.h" - -#include "net/ea/guildrecv.h" - #include "net/ea/guildrecv.h" #include "net/eathena/guildrecv.h" diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp index 007bff852..65b3309a3 100644 --- a/src/net/eathena/guildrecv.cpp +++ b/src/net/eathena/guildrecv.cpp @@ -21,8 +21,8 @@ #include "net/eathena/guildrecv.h" -#include "actormanager.h" #include "configuration.h" +#include "guild.h" #include "being/localplayer.h" #include "being/playerinfo.h" @@ -34,8 +34,9 @@ #include "net/ea/guildrecv.h" -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" +#include "net/messagein.h" + +#include "net/eathena/guildhandler.h" #include "debug.h" diff --git a/src/net/eathena/guildrecv.h b/src/net/eathena/guildrecv.h index 57bb18f49..4a0ea8348 100644 --- a/src/net/eathena/guildrecv.h +++ b/src/net/eathena/guildrecv.h @@ -22,9 +22,13 @@ #ifndef NET_EATHENA_GUILDRECV_H #define NET_EATHENA_GUILDRECV_H -#include "net/ea/guildhandler.h" +namespace Net +{ + class MessageIn; +} -#include "net/eathena/messagehandler.h" +class Guild; +class GuildTab; namespace EAthena { @@ -44,4 +48,6 @@ namespace Ea extern Guild *taGuild; } +extern GuildTab *guildTab; + #endif // NET_EATHENA_GUILDRECV_H diff --git a/src/net/eathena/homunculushandler.cpp b/src/net/eathena/homunculushandler.cpp index 79a4d4f10..53eac18ab 100644 --- a/src/net/eathena/homunculushandler.cpp +++ b/src/net/eathena/homunculushandler.cpp @@ -20,28 +20,14 @@ #include "net/eathena/homunculushandler.h" -#include "actormanager.h" -#include "notifymanager.h" - -#include "being/homunculusinfo.h" #include "being/playerinfo.h" -#include "enums/resources/notifytypes.h" - -#include "gui/windows/skilldialog.h" - #include "net/serverfeatures.h" #include "net/eathena/homunculusrecv.h" #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" -#include "resources/iteminfo.h" - -#include "resources/db/itemdb.h" - -#include "utils/stringutils.h" - #include "debug.h" extern Net::HomunculusHandler *homunculusHandler; diff --git a/src/net/eathena/homunculusrecv.cpp b/src/net/eathena/homunculusrecv.cpp index 1e0cec814..6502d6d14 100644 --- a/src/net/eathena/homunculusrecv.cpp +++ b/src/net/eathena/homunculusrecv.cpp @@ -30,15 +30,12 @@ #include "gui/windows/skilldialog.h" -#include "net/serverfeatures.h" - -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" - #include "resources/iteminfo.h" #include "resources/db/itemdb.h" +#include "net/messagein.h" + #include "utils/stringutils.h" #include "debug.h" diff --git a/src/net/eathena/homunculusrecv.h b/src/net/eathena/homunculusrecv.h index 46c61df47..e1024f08b 100644 --- a/src/net/eathena/homunculusrecv.h +++ b/src/net/eathena/homunculusrecv.h @@ -23,9 +23,10 @@ #ifdef EATHENA_SUPPORT -#include "net/homunculushandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index a6b16c466..32457ae48 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -22,38 +22,18 @@ #include "net/eathena/inventoryhandler.h" -#include "notifymanager.h" -#include "itemcolormanager.h" - -#include "being/localplayer.h" +#include "item.h" #include "enums/equipslot.h" -#include "enums/resources/notifytypes.h" - -#include "gui/popups/itempopup.h" - -#include "gui/widgets/createwidget.h" - -#include "gui/windows/insertcarddialog.h" - -#include "listeners/arrowslistener.h" - #include "net/ea/inventoryrecv.h" #include "net/eathena/inventoryrecv.h" -#include "net/eathena/itemflags.h" #include "net/eathena/menu.h" #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" #include "net/ea/eaprotocol.h" -#include "net/ea/equipbackend.h" - -#include "resources/iteminfo.h" - -#include "utils/gettext.h" -#include "utils/stringutils.h" #include "debug.h" diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp index 186e34cbd..83350a449 100644 --- a/src/net/eathena/inventoryrecv.cpp +++ b/src/net/eathena/inventoryrecv.cpp @@ -27,8 +27,6 @@ #include "being/localplayer.h" -#include "enums/equipslot.h" - #include "enums/resources/notifytypes.h" #include "gui/popups/itempopup.h" @@ -39,10 +37,12 @@ #include "listeners/arrowslistener.h" +#include "net/inventoryhandler.h" + +#include "net/messagein.h" + #include "net/eathena/itemflags.h" #include "net/eathena/menu.h" -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" #include "net/ea/eaprotocol.h" #include "net/ea/equipbackend.h" @@ -903,7 +903,7 @@ void InventoryRecv::processFavoriteItem(Net::MessageIn &msg) void InventoryRecv::processCartAddError(Net::MessageIn &msg) { - switch(msg.readUInt8("flag")) + switch (msg.readUInt8("flag")) { case 0: NotifyManager::notify(NotifyTypes::CART_ADD_WEIGHT_ERROR); diff --git a/src/net/eathena/inventoryrecv.h b/src/net/eathena/inventoryrecv.h index ea0bd71fd..b9dff5359 100644 --- a/src/net/eathena/inventoryrecv.h +++ b/src/net/eathena/inventoryrecv.h @@ -23,9 +23,12 @@ #ifndef NET_EATHENA_INVENTORYRECV_H #define NET_EATHENA_INVENTORYRECV_H -#include "net/ea/inventoryhandler.h" +#include "net/ea/inventoryitem.h" -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/itemhandler.cpp b/src/net/eathena/itemhandler.cpp index 2240cf392..d588a9461 100644 --- a/src/net/eathena/itemhandler.cpp +++ b/src/net/eathena/itemhandler.cpp @@ -22,12 +22,6 @@ #include "net/eathena/itemhandler.h" -#include "actormanager.h" -#include "itemcolormanager.h" -#include "logger.h" - -#include "enums/simpletypes/damaged.h" - #include "net/ea/itemrecv.h" #include "net/eathena/itemrecv.h" diff --git a/src/net/eathena/itemrecv.cpp b/src/net/eathena/itemrecv.cpp index c04621aaa..f082ae163 100644 --- a/src/net/eathena/itemrecv.cpp +++ b/src/net/eathena/itemrecv.cpp @@ -26,9 +26,7 @@ #include "itemcolormanager.h" #include "logger.h" -#include "enums/simpletypes/damaged.h" - -#include "net/eathena/protocol.h" +#include "net/messagein.h" #include "debug.h" diff --git a/src/net/eathena/itemrecv.h b/src/net/eathena/itemrecv.h index 274cc0a1a..94d65bf3d 100644 --- a/src/net/eathena/itemrecv.h +++ b/src/net/eathena/itemrecv.h @@ -23,9 +23,10 @@ #ifndef NET_EATHENA_ITEMRECV_H #define NET_EATHENA_ITEMRECV_H -#include "net/eathena/messagehandler.h" - -#include "net/ea/itemhandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp index 698e5854f..cca2a90eb 100644 --- a/src/net/eathena/loginhandler.cpp +++ b/src/net/eathena/loginhandler.cpp @@ -24,10 +24,7 @@ #include "client.h" -#include "gui/windows/logindialog.h" - #include "net/generalhandler.h" -#include "net/logindata.h" #include "net/serverfeatures.h" #include "net/ea/loginrecv.h" @@ -37,9 +34,6 @@ #include "net/eathena/network.h" #include "net/eathena/protocol.h" -#include "utils/gettext.h" -#include "utils/paths.h" - #include "debug.h" extern Net::LoginHandler *loginHandler; diff --git a/src/net/eathena/loginrecv.cpp b/src/net/eathena/loginrecv.cpp index a7ddbf95b..472ce76be 100644 --- a/src/net/eathena/loginrecv.cpp +++ b/src/net/eathena/loginrecv.cpp @@ -26,13 +26,9 @@ #include "gui/windows/logindialog.h" -#include "net/generalhandler.h" #include "net/logindata.h" -#include "net/serverfeatures.h" -#include "net/eathena/messageout.h" -#include "net/eathena/network.h" -#include "net/eathena/protocol.h" +#include "net/messagein.h" #include "utils/gettext.h" #include "utils/paths.h" diff --git a/src/net/eathena/loginrecv.h b/src/net/eathena/loginrecv.h index ccd34b7cc..139dd3fb5 100644 --- a/src/net/eathena/loginrecv.h +++ b/src/net/eathena/loginrecv.h @@ -23,9 +23,10 @@ #ifndef NET_EATHENA_LOGINRECV_H #define NET_EATHENA_LOGINRECV_H -#include "net/ea/loginhandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp index 3474a8b20..654032536 100644 --- a/src/net/eathena/mailhandler.cpp +++ b/src/net/eathena/mailhandler.cpp @@ -20,23 +20,12 @@ #include "net/eathena/mailhandler.h" -#include "notifymanager.h" - -#include "enums/resources/notifytypes.h" - -#include "gui/mailmessage.h" - -#include "gui/windows/mailwindow.h" - #include "net/ea/eaprotocol.h" #include "net/eathena/mailrecv.h" #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" -#include "utils/gettext.h" -#include "utils/stringutils.h" - #include "debug.h" extern Net::MailHandler *mailHandler; diff --git a/src/net/eathena/mailrecv.cpp b/src/net/eathena/mailrecv.cpp index 529f9d9a4..c66be876d 100644 --- a/src/net/eathena/mailrecv.cpp +++ b/src/net/eathena/mailrecv.cpp @@ -28,10 +28,8 @@ #include "gui/windows/mailwindow.h" -#include "net/ea/eaprotocol.h" - -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" +#include "net/mailhandler.h" +#include "net/messagein.h" #include "utils/gettext.h" #include "utils/stringutils.h" diff --git a/src/net/eathena/mailrecv.h b/src/net/eathena/mailrecv.h index a501d214e..f5c8560ad 100644 --- a/src/net/eathena/mailrecv.h +++ b/src/net/eathena/mailrecv.h @@ -21,14 +21,13 @@ #ifndef NET_EATHENA_MAILRECV_H #define NET_EATHENA_MAILRECV_H -#include "net/mailhandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { - class MessageOut; - namespace MailRecv { void processMailOpen(Net::MessageIn &msg); diff --git a/src/net/eathena/maphandler.cpp b/src/net/eathena/maphandler.cpp index 533307e4d..082bb5f3f 100644 --- a/src/net/eathena/maphandler.cpp +++ b/src/net/eathena/maphandler.cpp @@ -20,8 +20,6 @@ #include "net/eathena/maphandler.h" -#include "logger.h" - #include "net/eathena/maprecv.h" #include "net/eathena/protocol.h" diff --git a/src/net/eathena/maprecv.cpp b/src/net/eathena/maprecv.cpp index 9d4f39254..03c660c4c 100644 --- a/src/net/eathena/maprecv.cpp +++ b/src/net/eathena/maprecv.cpp @@ -22,7 +22,7 @@ #include "logger.h" -#include "net/eathena/protocol.h" +#include "net/messagein.h" #include "debug.h" diff --git a/src/net/eathena/maprecv.h b/src/net/eathena/maprecv.h index 14b9f74cd..8a566a218 100644 --- a/src/net/eathena/maprecv.h +++ b/src/net/eathena/maprecv.h @@ -21,9 +21,10 @@ #ifndef NET_EATHENA_MAPRECV_H #define NET_EATHENA_MAPRECV_H -#include "net/maphandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/markethandler.cpp b/src/net/eathena/markethandler.cpp index 4e304b4ba..36e45e60e 100644 --- a/src/net/eathena/markethandler.cpp +++ b/src/net/eathena/markethandler.cpp @@ -20,16 +20,6 @@ #include "net/eathena/markethandler.h" -#include "notifymanager.h" - -#include "being/playerinfo.h" - -#include "enums/resources/notifytypes.h" - -#include "gui/windows/buydialog.h" - -#include "gui/widgets/createwidget.h" - #include "net/eathena/marketrecv.h" #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" diff --git a/src/net/eathena/markethandler.h b/src/net/eathena/markethandler.h index 3a843e4fd..aa3db2f7f 100644 --- a/src/net/eathena/markethandler.h +++ b/src/net/eathena/markethandler.h @@ -25,10 +25,9 @@ #include "net/eathena/messagehandler.h" -class BuyDialog; - namespace EAthena { + class MarketHandler final : public MessageHandler, public Net::MarketHandler { diff --git a/src/net/eathena/marketrecv.cpp b/src/net/eathena/marketrecv.cpp index 2c8a448ae..1b2cb689f 100644 --- a/src/net/eathena/marketrecv.cpp +++ b/src/net/eathena/marketrecv.cpp @@ -30,8 +30,7 @@ #include "gui/widgets/createwidget.h" -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" +#include "net/messagein.h" #include "debug.h" diff --git a/src/net/eathena/marketrecv.h b/src/net/eathena/marketrecv.h index 3686e5187..fcab073f8 100644 --- a/src/net/eathena/marketrecv.h +++ b/src/net/eathena/marketrecv.h @@ -21,9 +21,10 @@ #ifndef NET_EATHENA_MARKETRECV_H #define NET_EATHENA_MARKETRECV_H -#include "net/markethandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} class BuyDialog; diff --git a/src/net/eathena/mercenaryhandler.cpp b/src/net/eathena/mercenaryhandler.cpp index c4c6741a7..353777e42 100644 --- a/src/net/eathena/mercenaryhandler.cpp +++ b/src/net/eathena/mercenaryhandler.cpp @@ -20,17 +20,8 @@ #include "net/eathena/mercenaryhandler.h" -#include "actormanager.h" -#include "notifymanager.h" - -#include "being/localplayer.h" -#include "being/mercenaryinfo.h" #include "being/playerinfo.h" -#include "enums/resources/notifytypes.h" - -#include "gui/windows/skilldialog.h" - #include "net/serverfeatures.h" #include "net/eathena/mercenaryrecv.h" diff --git a/src/net/eathena/mercenaryrecv.cpp b/src/net/eathena/mercenaryrecv.cpp index c96340703..d4f494ad9 100644 --- a/src/net/eathena/mercenaryrecv.cpp +++ b/src/net/eathena/mercenaryrecv.cpp @@ -31,10 +31,7 @@ #include "gui/windows/skilldialog.h" -#include "net/serverfeatures.h" - -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" +#include "net/messagein.h" #include "debug.h" diff --git a/src/net/eathena/mercenaryrecv.h b/src/net/eathena/mercenaryrecv.h index e8de53712..1162ed8d1 100644 --- a/src/net/eathena/mercenaryrecv.h +++ b/src/net/eathena/mercenaryrecv.h @@ -21,9 +21,10 @@ #ifndef NET_EATHENA_MERCENARYRECV_H #define NET_EATHENA_MERCENARYRECV_H -#include "net/mercenaryhandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp index 1ed4cb077..6ce6afac2 100644 --- a/src/net/eathena/npchandler.cpp +++ b/src/net/eathena/npchandler.cpp @@ -22,8 +22,6 @@ #include "net/eathena/npchandler.h" -#include "actormanager.h" - #include "being/localplayer.h" #include "gui/windows/npcdialog.h" diff --git a/src/net/eathena/npcrecv.cpp b/src/net/eathena/npcrecv.cpp index 4bc1cf657..f6058e682 100644 --- a/src/net/eathena/npcrecv.cpp +++ b/src/net/eathena/npcrecv.cpp @@ -21,20 +21,14 @@ #include "net/eathena/npcrecv.h" #include "actormanager.h" +#include "logger.h" -#include "being/localplayer.h" +#include "being/being.h" -#include "gui/windows/npcdialog.h" - -#include "gui/widgets/createwidget.h" +#include "net/messagein.h" #include "net/ea/npcrecv.h" -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" - -#include "net/ea/eaprotocol.h" - #include "debug.h" namespace EAthena diff --git a/src/net/eathena/npcrecv.h b/src/net/eathena/npcrecv.h index 865d53f3a..ed2e2f670 100644 --- a/src/net/eathena/npcrecv.h +++ b/src/net/eathena/npcrecv.h @@ -21,9 +21,10 @@ #ifndef NET_EATHENA_NPCRECV_H #define NET_EATHENA_NPCRECV_H -#include "net/ea/npchandler.h" - -#include "net/eathena/messagehandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp index 0e0625b4c..47bcf7aef 100644 --- a/src/net/eathena/partyhandler.cpp +++ b/src/net/eathena/partyhandler.cpp @@ -29,11 +29,6 @@ #include "enums/resources/notifytypes.h" -#include "gui/windows/chatwindow.h" -#include "gui/windows/socialwindow.h" - -#include "gui/widgets/tabs/chat/partytab.h" - #include "net/ea/partyrecv.h" #include "net/eathena/messageout.h" diff --git a/src/net/eathena/partyrecv.cpp b/src/net/eathena/partyrecv.cpp index 479433690..a5359aac5 100644 --- a/src/net/eathena/partyrecv.cpp +++ b/src/net/eathena/partyrecv.cpp @@ -34,10 +34,9 @@ #include "gui/widgets/tabs/chat/partytab.h" -#include "net/ea/partyrecv.h" +#include "net/messagein.h" -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" +#include "net/ea/partyrecv.h" #include "debug.h" diff --git a/src/net/eathena/partyrecv.h b/src/net/eathena/partyrecv.h index 623051a4f..432897aa1 100644 --- a/src/net/eathena/partyrecv.h +++ b/src/net/eathena/partyrecv.h @@ -22,9 +22,10 @@ #ifndef NET_EATHENA_PARTYRECV_H #define NET_EATHENA_PARTYRECV_H -#include "net/eathena/messagehandler.h" - -#include "net/ea/partyhandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index 8911a7978..ea6a0602a 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -20,34 +20,14 @@ #include "net/eathena/pethandler.h" -#include "actormanager.h" -#include "notifymanager.h" - -#include "being/localplayer.h" -#include "being/petinfo.h" #include "being/playerinfo.h" -#include "enums/resources/notifytypes.h" - -#include "gui/windows/eggselectiondialog.h" - -#include "gui/widgets/createwidget.h" - -#include "gui/widgets/tabs/chat/chattab.h" - -#include "net/inventoryhandler.h" #include "net/serverfeatures.h" -#include "net/ea/eaprotocol.h" - -#include "net/eathena/menu.h" #include "net/eathena/messageout.h" #include "net/eathena/petrecv.h" #include "net/eathena/protocol.h" -#include "utils/gettext.h" -#include "utils/stringutils.h" - #include "debug.h" extern Net::PetHandler *petHandler; diff --git a/src/net/eathena/petrecv.cpp b/src/net/eathena/petrecv.cpp index 4d1dbe279..c22323480 100644 --- a/src/net/eathena/petrecv.cpp +++ b/src/net/eathena/petrecv.cpp @@ -36,13 +36,11 @@ #include "gui/widgets/tabs/chat/chattab.h" #include "net/inventoryhandler.h" -#include "net/serverfeatures.h" +#include "net/messagein.h" #include "net/ea/eaprotocol.h" #include "net/eathena/menu.h" -#include "net/eathena/messageout.h" -#include "net/eathena/protocol.h" #include "utils/gettext.h" #include "utils/stringutils.h" diff --git a/src/net/eathena/petrecv.h b/src/net/eathena/petrecv.h index 81b2258fc..168094616 100644 --- a/src/net/eathena/petrecv.h +++ b/src/net/eathena/petrecv.h @@ -21,9 +21,10 @@ #ifndef NET_EATHENA_PETRECV_H #define NET_EATHENA_PETRECV_H -#include "net/eathena/messagehandler.h" - -#include "net/pethandler.h" +namespace Net +{ + class MessageIn; +} namespace EAthena { |