From abe471af64c2b015085578efd3374048dd6f216b Mon Sep 17 00:00:00 2001 From: Akkadius Date: Mon, 15 Dec 2014 17:39:16 -0600 Subject: [PATCH 1/5] horse.cpp & .h header cleanup and forward declare --- zone/horse.cpp | 10 +++++----- zone/horse.h | 6 +++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/zone/horse.cpp b/zone/horse.cpp index df7c7e7c1..9a4e5240c 100644 --- a/zone/horse.cpp +++ b/zone/horse.cpp @@ -17,13 +17,13 @@ */ #include "../common/debug.h" -#include "masterentity.h" -#include "../common/item.h" #include "../common/linked_list.h" #include "../common/string_util.h" -#include -#include -#include "worldserver.h" + +#include "client.h" +#include "entity.h" +#include "horse.h" +#include "mob.h" std::map Horse::horse_types; LinkedList horses_auto_delete; diff --git a/zone/horse.h b/zone/horse.h index dd58007eb..0965a2b69 100644 --- a/zone/horse.h +++ b/zone/horse.h @@ -18,11 +18,15 @@ Copyright (C) 2001-2002 EQEMu Development Team (http://eqemu.org) #ifndef HORSES_H #define HORSES_H -#include "../common/debug.h" #include "npc.h" #include +class Client; +class Mob; +struct NPCType; +struct NewSpawn_Struct; + class Horse : public NPC { public: Horse(Client *owner, uint16 spell_id, float x, float y, float z, float heading); From 95c95525babe7998a0a027b6522952c76619be98 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Mon, 15 Dec 2014 17:41:14 -0600 Subject: [PATCH 2/5] loottables.cpp & .h header include cleanup and forward declare --- zone/loottables.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/zone/loottables.cpp b/zone/loottables.cpp index c5fda890e..341a7b83c 100644 --- a/zone/loottables.cpp +++ b/zone/loottables.cpp @@ -15,15 +15,20 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #include "../common/debug.h" -#include -#include -#include -#include "npc.h" -#include "masterentity.h" -#include "zonedb.h" #include "../common/loottable.h" #include "../common/misc_functions.h" + +#include "client.h" +#include "entity.h" +#include "mob.h" +#include "npc.h" +#include "zonedb.h" + +#include +#include + #ifdef _WINDOWS #define snprintf _snprintf #endif From 85b7cc63301dbd92260a142eabc328ed3be09496 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Mon, 15 Dec 2014 17:44:46 -0600 Subject: [PATCH 3/5] map.cpp & .h header cleanup --- zone/map.cpp | 8 ++++---- zone/map.h | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/zone/map.cpp b/zone/map.cpp index a023cc125..b6f4de2b5 100644 --- a/zone/map.cpp +++ b/zone/map.cpp @@ -1,15 +1,15 @@ #include "../common/debug.h" #include "../common/misc_functions.h" + #include "map.h" #include "raycast_mesh.h" #include "zone.h" -#include + #include -#include -#include +#include #include #include -#include +#include #include uint32 InflateData(const char* buffer, uint32 len, char* out_buffer, uint32 out_len_max) { diff --git a/zone/map.h b/zone/map.h index 224e30c73..dc03d8ac0 100644 --- a/zone/map.h +++ b/zone/map.h @@ -23,7 +23,6 @@ #define ZONE_MAP_H #include -#include #define BEST_Z_INVALID -99999 From 8584895427d055ae54f1e5c04ac0c3bd8e312e6f Mon Sep 17 00:00:00 2001 From: Akkadius Date: Mon, 15 Dec 2014 17:47:52 -0600 Subject: [PATCH 4/5] merc.h header cleanup and forward declare --- zone/merc.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/zone/merc.h b/zone/merc.h index 167fe70d6..f604d485c 100644 --- a/zone/merc.h +++ b/zone/merc.h @@ -1,9 +1,18 @@ #ifndef MERC_H #define MERC_H -#include "mob.h" -#include "zonedb.h" + #include "npc.h" +class Client; +class Corpse; +class Group; +class Mob; +class Raid; +struct Item_Struct; +struct MercTemplate; +struct NPCType; +struct NewSpawn_Struct; + #define MERC_DEBUG 0 #define MAXMERCS 1 #define TANK 1 From 55b495826c3c25c147dff487b7b84b917ce613af Mon Sep 17 00:00:00 2001 From: Akkadius Date: Mon, 15 Dec 2014 17:48:18 -0600 Subject: [PATCH 5/5] masterentity.h include order revert for linux --- zone/masterentity.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/zone/masterentity.h b/zone/masterentity.h index 72cf0b162..8c238ed34 100644 --- a/zone/masterentity.h +++ b/zone/masterentity.h @@ -1,17 +1,17 @@ //Trumpcard: EntityLists are composed of multiple list types. This is the //master that includes all types. When entity.h is required, many of these are as well. -#include "beacon.h" -#include "client.h" -#include "corpse.h" -#include "doors.h" #include "entity.h" #include "groups.h" -#include "horse.h" -#include "mob.h" -#include "object.h" #include "raids.h" +#include "client.h" +#include "object.h" +#include "corpse.h" +#include "doors.h" +#include "mob.h" #include "trap.h" +#include "beacon.h" +#include "horse.h" #ifdef BOTS #include "bot.h"