From 7f6f4dfebc463916a8cb82e8abebdecd2ed6e38b Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 13 Dec 2004 16:23:14 +0000 Subject: Whee, moving headers around! Also provided makefile.mgw for compiling with MinGW+MSYS. --- src/being.h | 4 ++-- src/game.h | 5 ++--- src/graphic/graphic.h | 2 +- src/gui/login.h | 8 ++++---- src/gui/setup.h | 4 ++-- src/main.h | 22 ++++++++++++---------- src/map.cpp | 1 + src/net/protocol.h | 9 +++++---- 8 files changed, 29 insertions(+), 26 deletions(-) (limited to 'src') diff --git a/src/being.h b/src/being.h index 48cee019..c1537943 100644 --- a/src/being.h +++ b/src/being.h @@ -21,8 +21,8 @@ * By ElvenProgrammer aka Eugenio Favalli (umperio@users.sourceforge.net) */ -#ifndef _BEING_H -#define _BEING_H +#ifndef _TMW_BEING_H +#define _TMW_BEING_H #include "./net/protocol.h" diff --git a/src/game.h b/src/game.h index 2ef4f9d8..6b7cc073 100644 --- a/src/game.h +++ b/src/game.h @@ -29,14 +29,13 @@ #ifndef _GAME_H #define _GAME_H -#include -#include - #include "main.h" #include "./gui/gui.h" #include "./gui/skill.h" #include "./gui/stats.h" #include "./graphic/2xsai.h" +#include +#include #define SPEECH_TIME 40 #define EMOTION_TIME 40 diff --git a/src/graphic/graphic.h b/src/graphic/graphic.h index 4ab0aa32..4c68f933 100644 --- a/src/graphic/graphic.h +++ b/src/graphic/graphic.h @@ -28,7 +28,6 @@ #pragma warning (disable:4312) #endif -#include #include "../game.h" #include "../map.h" #include "../being.h" @@ -40,6 +39,7 @@ #include "../gui/npc.h" #include "../../data/graphic/gfx_data.h" #include "image.h" +#include extern BITMAP *buffer, *double_buffer; extern char speech[255]; diff --git a/src/gui/login.h b/src/gui/login.h index 8798ddea..e823381d 100644 --- a/src/gui/login.h +++ b/src/gui/login.h @@ -26,14 +26,14 @@ #ifndef _LOGIN_H #define _LOGIN_H -#include -#ifdef WIN32 -#include -#endif #include "../main.h" #include "../log.h" #include "../net/network.h" #include "gui.h" +#include +#ifdef WIN32 +#include +#endif // The action listener for the login dialog class LoginActionListener : public gcn::ActionListener { diff --git a/src/gui/setup.h b/src/gui/setup.h index 5c92f136..bb211997 100644 --- a/src/gui/setup.h +++ b/src/gui/setup.h @@ -6,12 +6,12 @@ #ifndef tmw_included_setup_h #define tmw_included_setup_h +#include "gui.h" +#include "../graphic/graphic.h" #include #ifdef WIN32 #include #endif -#include "gui.h" -#include "../graphic/graphic.h" class Setup { public: diff --git a/src/main.h b/src/main.h index 0578b42a..3d4f424f 100644 --- a/src/main.h +++ b/src/main.h @@ -30,24 +30,26 @@ #define CORE_VERSION "0.0.8" -#include -#ifdef WIN32 -#include -#endif -#include -#include - -#include "log.h" -#include "game.h" -#include "./net/protocol.h" +#include +#include #include "./gui/login.h" #include "./gui/gui.h" #include "./gui/stats.h" #include "./gui/char_server.h" #include "./gui/char_select.h" #include "./gui/inventory.h" +#include "log.h" +#include "game.h" +#include "./net/protocol.h" #include "./graphic/2xsai.h" #include "../data/graphic/gfx_data.h" +#include +#ifdef WIN32 +#include +#endif +#include +#include + #define EXIT 0 #define LOGIN 1 diff --git a/src/map.cpp b/src/map.cpp index e10bb9fd..154f1adc 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -19,6 +19,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "main.h" #include "map.h" #include "log.h" #include "being.h" diff --git a/src/net/protocol.h b/src/net/protocol.h index a56b7599..374024e3 100644 --- a/src/net/protocol.h +++ b/src/net/protocol.h @@ -23,8 +23,11 @@ #pragma warning (disable:4312) #endif -#ifndef _PROTOCOL_H -#define _PROTOCOL_H +#ifndef _TMW_PROTOCOL_H +#define _TMW_PROTOCOL_H + +#include "../main.h" +#include "../being.h" #include #ifdef WIN32 @@ -34,8 +37,6 @@ #include "win2linux.h" #endif -#include "../main.h" -#include "../being.h" short get_length(short id); unsigned short get_x(char *data); -- cgit v1.2.3-70-g09d2