summaryrefslogtreecommitdiff
path: root/src/net/manaserv
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-01-12 14:19:47 -0700
committerJared <jaxad0127@gmail.com>2010-01-12 14:41:34 -0700
commit1420656e08f65f3e5c963f82b10a718b8026d216 (patch)
tree262441cb8f9587b982f9078398844021c0d22de0 /src/net/manaserv
parentd18b9fb1aa086d3ed0187d61940564f197411cf4 (diff)
downloadmana-1420656e08f65f3e5c963f82b10a718b8026d216.tar.gz
mana-1420656e08f65f3e5c963f82b10a718b8026d216.tar.bz2
mana-1420656e08f65f3e5c963f82b10a718b8026d216.tar.xz
mana-1420656e08f65f3e5c963f82b10a718b8026d216.zip
Standardize header order
Also remove some extra new lines and fix eAthena's PartyTab define guards.
Diffstat (limited to 'src/net/manaserv')
-rw-r--r--src/net/manaserv/beinghandler.cpp10
-rw-r--r--src/net/manaserv/buysellhandler.cpp8
-rw-r--r--src/net/manaserv/charhandler.cpp20
-rw-r--r--src/net/manaserv/charhandler.h4
-rw-r--r--src/net/manaserv/chathandler.cpp13
-rw-r--r--src/net/manaserv/connection.cpp4
-rw-r--r--src/net/manaserv/connection.h4
-rw-r--r--src/net/manaserv/effecthandler.cpp8
-rw-r--r--src/net/manaserv/gamehandler.cpp6
-rw-r--r--src/net/manaserv/generalhandler.cpp9
-rw-r--r--src/net/manaserv/guildhandler.cpp14
-rw-r--r--src/net/manaserv/inventoryhandler.cpp10
-rw-r--r--src/net/manaserv/inventoryhandler.h4
-rw-r--r--src/net/manaserv/itemhandler.cpp6
-rw-r--r--src/net/manaserv/loginhandler.cpp8
-rw-r--r--src/net/manaserv/network.cpp4
-rw-r--r--src/net/manaserv/npchandler.cpp12
-rw-r--r--src/net/manaserv/partyhandler.cpp10
-rw-r--r--src/net/manaserv/playerhandler.cpp14
-rw-r--r--src/net/manaserv/tradehandler.cpp14
20 files changed, 91 insertions, 91 deletions
diff --git a/src/net/manaserv/beinghandler.cpp b/src/net/manaserv/beinghandler.cpp
index d7cb40c0..585f0823 100644
--- a/src/net/manaserv/beinghandler.cpp
+++ b/src/net/manaserv/beinghandler.cpp
@@ -21,11 +21,6 @@
#include "net/manaserv/beinghandler.h"
-#include "net/manaserv/playerhandler.h"
-#include "net/manaserv/protocol.h"
-
-#include "net/messagein.h"
-
#include "being.h"
#include "beingmanager.h"
#include "game.h"
@@ -38,6 +33,11 @@
#include "gui/okdialog.h"
+#include "net/messagein.h"
+
+#include "net/manaserv/playerhandler.h"
+#include "net/manaserv/protocol.h"
+
#include "resources/colordb.h"
#include "utils/gettext.h"
diff --git a/src/net/manaserv/buysellhandler.cpp b/src/net/manaserv/buysellhandler.cpp
index 9f3e65ad..9c8cb129 100644
--- a/src/net/manaserv/buysellhandler.cpp
+++ b/src/net/manaserv/buysellhandler.cpp
@@ -21,15 +21,15 @@
#include "net/manaserv/buysellhandler.h"
-#include "net/manaserv/protocol.h"
-
-#include "net/messagein.h"
-
#include "beingmanager.h"
#include "item.h"
#include "localplayer.h"
#include "npc.h"
+#include "net/messagein.h"
+
+#include "net/manaserv/protocol.h"
+
#include "gui/buy.h"
#include "gui/chat.h"
#include "gui/sell.h"
diff --git a/src/net/manaserv/charhandler.cpp b/src/net/manaserv/charhandler.cpp
index ee32c5ae..06c81c9e 100644
--- a/src/net/manaserv/charhandler.cpp
+++ b/src/net/manaserv/charhandler.cpp
@@ -21,16 +21,6 @@
#include "net/manaserv/charhandler.h"
-#include "net/manaserv/connection.h"
-#include "net/manaserv/gamehandler.h"
-#include "net/manaserv/messagein.h"
-#include "net/manaserv/messageout.h"
-#include "net/manaserv/protocol.h"
-
-#include "net/logindata.h"
-#include "net/loginhandler.h"
-#include "net/net.h"
-
#include "game.h"
#include "localplayer.h"
#include "log.h"
@@ -39,6 +29,16 @@
#include "gui/charcreatedialog.h"
#include "gui/okdialog.h"
+#include "net/logindata.h"
+#include "net/loginhandler.h"
+#include "net/net.h"
+
+#include "net/manaserv/connection.h"
+#include "net/manaserv/gamehandler.h"
+#include "net/manaserv/messagein.h"
+#include "net/manaserv/messageout.h"
+#include "net/manaserv/protocol.h"
+
#include "resources/colordb.h"
#include "utils/gettext.h"
diff --git a/src/net/manaserv/charhandler.h b/src/net/manaserv/charhandler.h
index 6131412b..fca2b30a 100644
--- a/src/net/manaserv/charhandler.h
+++ b/src/net/manaserv/charhandler.h
@@ -22,10 +22,10 @@
#ifndef NET_MANASERV_CHARSERVERHANDLER_H
#define NET_MANASERV_CHARSERVERHANDLER_H
-#include "net/charhandler.h"
-
#include "gui/charselectdialog.h"
+#include "net/charhandler.h"
+
#include "net/manaserv/messagehandler.h"
class LoginData;
diff --git a/src/net/manaserv/chathandler.cpp b/src/net/manaserv/chathandler.cpp
index 36e57278..70e148b1 100644
--- a/src/net/manaserv/chathandler.cpp
+++ b/src/net/manaserv/chathandler.cpp
@@ -21,11 +21,6 @@
#include "net/manaserv/chathandler.h"
-#include "net/manaserv/connection.h"
-#include "net/manaserv/messagein.h"
-#include "net/manaserv/messageout.h"
-#include "net/manaserv/protocol.h"
-
#include "being.h"
#include "beingmanager.h"
#include "channel.h"
@@ -33,10 +28,16 @@
#include "game.h"
#include "main.h"
-#include "gui/widgets/channeltab.h"
#include "gui/chat.h"
#include "gui/guildwindow.h"
+#include "gui/widgets/channeltab.h"
+
+#include "net/manaserv/connection.h"
+#include "net/manaserv/messagein.h"
+#include "net/manaserv/messageout.h"
+#include "net/manaserv/protocol.h"
+
#include "utils/gettext.h"
#include "utils/stringutils.h"
diff --git a/src/net/manaserv/connection.cpp b/src/net/manaserv/connection.cpp
index 6ddcf186..af2816fb 100644
--- a/src/net/manaserv/connection.cpp
+++ b/src/net/manaserv/connection.cpp
@@ -21,11 +21,11 @@
#include "net/manaserv/connection.h"
+#include "log.h"
+
#include "net/manaserv/internal.h"
#include "net/manaserv/messageout.h"
-#include "log.h"
-
#include <string>
namespace ManaServ
diff --git a/src/net/manaserv/connection.h b/src/net/manaserv/connection.h
index e5db8c8e..daab8b69 100644
--- a/src/net/manaserv/connection.h
+++ b/src/net/manaserv/connection.h
@@ -22,10 +22,10 @@
#ifndef NET_MANASERV_CONNECTION_H
#define NET_MANASERV_CONNECTION_H
-#include <iosfwd>
-
#include <enet/enet.h>
+#include <iosfwd>
+
namespace ManaServ
{
class MessageOut;
diff --git a/src/net/manaserv/effecthandler.cpp b/src/net/manaserv/effecthandler.cpp
index 39bc9cba..ca484b30 100644
--- a/src/net/manaserv/effecthandler.cpp
+++ b/src/net/manaserv/effecthandler.cpp
@@ -21,14 +21,14 @@
#include "net/manaserv/effecthandler.h"
-#include "net/manaserv/protocol.h"
-
-#include "net/messagein.h"
-
#include "beingmanager.h"
#include "effectmanager.h"
#include "log.h"
+#include "net/messagein.h"
+
+#include "net/manaserv/protocol.h"
+
namespace ManaServ {
EffectHandler::EffectHandler()
diff --git a/src/net/manaserv/gamehandler.cpp b/src/net/manaserv/gamehandler.cpp
index 700d2d6c..2e310cc7 100644
--- a/src/net/manaserv/gamehandler.cpp
+++ b/src/net/manaserv/gamehandler.cpp
@@ -21,14 +21,14 @@
#include "net/manaserv/gamehandler.h"
+#include "localplayer.h"
+#include "main.h"
+
#include "net/manaserv/chathandler.h"
#include "net/manaserv/connection.h"
#include "net/manaserv/messageout.h"
#include "net/manaserv/protocol.h"
-#include "localplayer.h"
-#include "main.h"
-
extern Net::GameHandler *gameHandler;
extern ManaServ::ChatHandler *chatHandler;
diff --git a/src/net/manaserv/generalhandler.cpp b/src/net/manaserv/generalhandler.cpp
index 96a6750d..79eb59ef 100644
--- a/src/net/manaserv/generalhandler.cpp
+++ b/src/net/manaserv/generalhandler.cpp
@@ -21,6 +21,8 @@
#include "net/manaserv/generalhandler.h"
+#include "main.h"
+
#include "gui/changeemaildialog.h"
#include "gui/charselectdialog.h"
#include "gui/inventorywindow.h"
@@ -30,19 +32,18 @@
#include "gui/specialswindow.h"
#include "gui/statuswindow.h"
-#include "net/manaserv/network.h"
-#include "net/manaserv/connection.h"
-
#include "net/manaserv/beinghandler.h"
#include "net/manaserv/buysellhandler.h"
#include "net/manaserv/charhandler.h"
#include "net/manaserv/chathandler.h"
+#include "net/manaserv/connection.h"
#include "net/manaserv/effecthandler.h"
#include "net/manaserv/gamehandler.h"
#include "net/manaserv/guildhandler.h"
#include "net/manaserv/inventoryhandler.h"
#include "net/manaserv/itemhandler.h"
#include "net/manaserv/loginhandler.h"
+#include "net/manaserv/network.h"
#include "net/manaserv/npchandler.h"
#include "net/manaserv/partyhandler.h"
#include "net/manaserv/playerhandler.h"
@@ -51,8 +52,6 @@
#include "utils/gettext.h"
-#include "main.h"
-
#include <list>
extern Net::GeneralHandler *generalHandler;
diff --git a/src/net/manaserv/guildhandler.cpp b/src/net/manaserv/guildhandler.cpp
index 79f76320..c2160332 100644
--- a/src/net/manaserv/guildhandler.cpp
+++ b/src/net/manaserv/guildhandler.cpp
@@ -21,13 +21,6 @@
#include "net/manaserv/guildhandler.h"
-#include "net/messagein.h"
-
-#include "net/manaserv/connection.h"
-#include "net/manaserv/messagein.h"
-#include "net/manaserv/messageout.h"
-#include "net/manaserv/protocol.h"
-
#include "gui/widgets/channeltab.h"
#include "gui/chat.h"
#include "gui/guildwindow.h"
@@ -38,6 +31,13 @@
#include "channel.h"
#include "channelmanager.h"
+#include "net/messagein.h"
+
+#include "net/manaserv/connection.h"
+#include "net/manaserv/messagein.h"
+#include "net/manaserv/messageout.h"
+#include "net/manaserv/protocol.h"
+
#include "utils/gettext.h"
#include "utils/stringutils.h"
diff --git a/src/net/manaserv/inventoryhandler.cpp b/src/net/manaserv/inventoryhandler.cpp
index f62da41c..163ff305 100644
--- a/src/net/manaserv/inventoryhandler.cpp
+++ b/src/net/manaserv/inventoryhandler.cpp
@@ -21,11 +21,6 @@
#include "net/manaserv/inventoryhandler.h"
-#include "net/manaserv/connection.h"
-#include "net/manaserv/messagein.h"
-#include "net/manaserv/messageout.h"
-#include "net/manaserv/protocol.h"
-
#include "equipment.h"
#include "inventory.h"
#include "item.h"
@@ -34,6 +29,11 @@
#include "gui/chat.h"
+#include "net/manaserv/connection.h"
+#include "net/manaserv/messagein.h"
+#include "net/manaserv/messageout.h"
+#include "net/manaserv/protocol.h"
+
#include "resources/iteminfo.h"
#include "log.h" // <<< REMOVE ME!
diff --git a/src/net/manaserv/inventoryhandler.h b/src/net/manaserv/inventoryhandler.h
index fd28738c..65b51e3b 100644
--- a/src/net/manaserv/inventoryhandler.h
+++ b/src/net/manaserv/inventoryhandler.h
@@ -22,12 +22,12 @@
#ifndef NET_MANASERV_INVENTORYHANDLER_H
#define NET_MANASERV_INVENTORYHANDLER_H
+#include "equipment.h"
+
#include "net/inventoryhandler.h"
#include "net/manaserv/messagehandler.h"
-#include "equipment.h"
-
namespace ManaServ {
class EquipBackend : public Equipment::Backend {
diff --git a/src/net/manaserv/itemhandler.cpp b/src/net/manaserv/itemhandler.cpp
index c63eb5bd..3d89487c 100644
--- a/src/net/manaserv/itemhandler.cpp
+++ b/src/net/manaserv/itemhandler.cpp
@@ -21,13 +21,13 @@
#include "net/manaserv/itemhandler.h"
+#include "engine.h"
+#include "flooritemmanager.h"
+
#include "net/manaserv/protocol.h"
#include "net/manaserv/messagein.h"
-#include "engine.h"
-#include "flooritemmanager.h"
-
namespace ManaServ {
ItemHandler::ItemHandler()
diff --git a/src/net/manaserv/loginhandler.cpp b/src/net/manaserv/loginhandler.cpp
index 91d9171b..704d600b 100644
--- a/src/net/manaserv/loginhandler.cpp
+++ b/src/net/manaserv/loginhandler.cpp
@@ -21,15 +21,15 @@
#include "net/manaserv/loginhandler.h"
+#include "main.h"
+
+#include "net/logindata.h"
+
#include "net/manaserv/connection.h"
#include "net/manaserv/messagein.h"
#include "net/manaserv/messageout.h"
#include "net/manaserv/protocol.h"
-#include "net/logindata.h"
-
-#include "main.h"
-
#include "utils/gettext.h"
#include "utils/sha256.h"
diff --git a/src/net/manaserv/network.cpp b/src/net/manaserv/network.cpp
index 83d78e06..5bf411cb 100644
--- a/src/net/manaserv/network.cpp
+++ b/src/net/manaserv/network.cpp
@@ -21,13 +21,13 @@
#include "net/manaserv/network.h"
+#include "log.h"
+
#include "net/manaserv/connection.h"
#include "net/manaserv/internal.h"
#include "net/manaserv/messagehandler.h"
#include "net/manaserv/messagein.h"
-#include "log.h"
-
#include <enet/enet.h>
#include <map>
diff --git a/src/net/manaserv/npchandler.cpp b/src/net/manaserv/npchandler.cpp
index 9856daeb..5d9b62de 100644
--- a/src/net/manaserv/npchandler.cpp
+++ b/src/net/manaserv/npchandler.cpp
@@ -21,16 +21,16 @@
#include "net/manaserv/npchandler.h"
-#include "net/manaserv/connection.h"
-#include "net/manaserv/messagein.h"
-#include "net/manaserv/messageout.h"
-#include "net/manaserv/protocol.h"
-
#include "beingmanager.h"
#include "npc.h"
-#include "gui/npcpostdialog.h"
#include "gui/npcdialog.h"
+#include "gui/npcpostdialog.h"
+
+#include "net/manaserv/connection.h"
+#include "net/manaserv/messagein.h"
+#include "net/manaserv/messageout.h"
+#include "net/manaserv/protocol.h"
extern Net::NpcHandler *npcHandler;
diff --git a/src/net/manaserv/partyhandler.cpp b/src/net/manaserv/partyhandler.cpp
index ae33ead6..a013ae29 100644
--- a/src/net/manaserv/partyhandler.cpp
+++ b/src/net/manaserv/partyhandler.cpp
@@ -21,11 +21,6 @@
#include "net/manaserv/partyhandler.h"
-#include "net/manaserv/connection.h"
-#include "net/manaserv/messagein.h"
-#include "net/manaserv/messageout.h"
-#include "net/manaserv/protocol.h"
-
#include "gui/partywindow.h"
#include "gui/widgets/chattab.h"
@@ -33,6 +28,11 @@
#include "log.h"
#include "localplayer.h"
+#include "net/manaserv/connection.h"
+#include "net/manaserv/messagein.h"
+#include "net/manaserv/messageout.h"
+#include "net/manaserv/protocol.h"
+
#include "utils/gettext.h"
#include "utils/stringutils.h"
diff --git a/src/net/manaserv/playerhandler.cpp b/src/net/manaserv/playerhandler.cpp
index 62110f8f..60274288 100644
--- a/src/net/manaserv/playerhandler.cpp
+++ b/src/net/manaserv/playerhandler.cpp
@@ -21,13 +21,6 @@
#include "net/manaserv/playerhandler.h"
-#include "net/manaserv/connection.h"
-#include "net/manaserv/messagein.h"
-#include "net/manaserv/messageout.h"
-#include "net/manaserv/protocol.h"
-
-#include "net/net.h"
-
#include "effectmanager.h"
#include "engine.h"
#include "localplayer.h"
@@ -42,6 +35,13 @@
#include "gui/sell.h"
#include "gui/viewport.h"
+#include "net/net.h"
+
+#include "net/manaserv/connection.h"
+#include "net/manaserv/messagein.h"
+#include "net/manaserv/messageout.h"
+#include "net/manaserv/protocol.h"
+
// TODO Move somewhere else
OkDialog *weightNotice = NULL;
OkDialog *deathNotice = NULL;
diff --git a/src/net/manaserv/tradehandler.cpp b/src/net/manaserv/tradehandler.cpp
index 08fc354c..5eedbec8 100644
--- a/src/net/manaserv/tradehandler.cpp
+++ b/src/net/manaserv/tradehandler.cpp
@@ -21,13 +21,6 @@
#include "net/manaserv/tradehandler.h"
-#include "net/manaserv/connection.h"
-#include "net/manaserv/messagein.h"
-#include "net/manaserv/messageout.h"
-#include "net/manaserv/protocol.h"
-
-#include "net/net.h"
-
#include "beingmanager.h"
#include "item.h"
#include "localplayer.h"
@@ -37,6 +30,13 @@
#include "gui/widgets/chattab.h"
+#include "net/net.h"
+
+#include "net/manaserv/connection.h"
+#include "net/manaserv/messagein.h"
+#include "net/manaserv/messageout.h"
+#include "net/manaserv/protocol.h"
+
#include "utils/gettext.h"
#include "utils/stringutils.h"