SAGA2: Further work on include dependency reduction

This commit is contained in:
Eugene Sandulenko 2021-06-02 14:37:59 +02:00
parent 3e79f9cd1b
commit 0dba551dd5
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
16 changed files with 18 additions and 31 deletions

View File

@ -47,6 +47,7 @@
#include "saga2/localize.h"
#include "saga2/intrface.h"
#include "saga2/hresmgr.h"
#include "saga2/contain.h"
// Include files needed for SAGA script dispatch
#include "saga2/script.h"

View File

@ -27,7 +27,6 @@
#ifndef SAGA2_DOCUMENT_H
#define SAGA2_DOCUMENT_H
#include "saga2/floating.h"
#include "saga2/modal.h"
namespace Saga2 {

View File

@ -27,9 +27,6 @@
#ifndef SAGA2_GBEVEL_H
#define SAGA2_GBEVEL_H
#include "saga2/gdraw.h"
#include "saga2/errors.h"
namespace Saga2 {
/* ===================================================================== *

View File

@ -27,11 +27,6 @@
#ifndef SAGA2_GRABINFO_H
#define SAGA2_GRABINFO_H
#include "saga2/objects.h"
#include "saga2/contain.h"
#include "saga2/uimetrcs.h"
namespace Saga2 {
/* ===================================================================== *
class GrabInfo

View File

@ -30,6 +30,7 @@
#include "saga2/tilemode.h"
#include "saga2/calender.h"
#include "saga2/objects.h"
#include "saga2/tile.h"
#include "saga2/setup.h"
#include "saga2/grabinfo.h"

View File

@ -27,17 +27,15 @@
#ifndef SAGA2_MAPFEATR_H
#define SAGA2_MAPFEATR_H
#include "saga2/idtypes.h"
#include "saga2/contain.h"
#include "saga2/cmisc.h"
#include "saga2/button.h"
#include "saga2/intrface.h"
#include "saga2/floating.h"
#include "saga2/rect.h"
#include "saga2/tcoords.h"
namespace Saga2 {
#define MAX_MAP_FEATURE_NAME_LENGTH 32
class gPort;
class gPixelMap;
#define MAX_MAP_FEATURE_NAME_LENGTH 32
/* ===================================================================== *
Types

View File

@ -27,8 +27,6 @@
#ifndef SAGA2_MOUSEIMG_H
#define SAGA2_MOUSEIMG_H
#include "saga2/gdraw.h"
namespace Saga2 {
// Set a new image for the mouse pointer

View File

@ -28,8 +28,6 @@
#define SAGA2_ONCALL_H
#include "saga2/bitarray.h"
#include "saga2/rmem.h"
#include "saga2/localize.h"
namespace Saga2 {

View File

@ -27,6 +27,7 @@
#define FORBIDDEN_SYMBOL_ALLOW_ALL // FIXME: Remove
#include "saga2/std.h"
#include "saga2/dlist.h"
#include "saga2/pool.h"
namespace Saga2 {

View File

@ -27,8 +27,6 @@
#ifndef SAGA2_POOL_H
#define SAGA2_POOL_H
#include "saga2/dlist.h"
namespace Saga2 {
/* ===================================================================== *

View File

@ -27,6 +27,7 @@
#define FORBIDDEN_SYMBOL_ALLOW_ALL // FIXME: Remove
#include "saga2/std.h"
#include "saga2/objects.h"
#include "saga2/sensor.h"
#include "saga2/pool.h"
#include "saga2/player.h"

View File

@ -27,8 +27,6 @@
#ifndef SAGA2_SENSOR_H
#define SAGA2_SENSOR_H
#include "saga2/objects.h"
namespace Saga2 {
const uint32 nonActorSenseFlags = actorSeeInvis;

View File

@ -32,13 +32,13 @@
namespace Saga2 {
class StorageSpellTarget;
struct StorageSpellTarget;
class SpellInstance;
class StorageEffectron;
struct StorageEffectron;
class SpellDisplayPrototype;
class EffectDisplayPrototype;
class ResourceSpellItem;
class StorageSpellInstance;
struct ResourceSpellItem;
struct StorageSpellInstance;
/* ===================================================================== *
Constants

View File

@ -27,8 +27,6 @@
#ifndef SAGA2_TILELINE_H
#define SAGA2_TILELINE_H
#include "saga2/tcoords.h"
namespace Saga2 {
#if DEBUG

View File

@ -30,6 +30,7 @@
#include "saga2/tilemode.h"
#include "saga2/tile.h"
#include "saga2/setup.h"
#include "saga2/objects.h"
#include "saga2/grabinfo.h"
#include "saga2/mouseimg.h"
#include "saga2/motion.h"
@ -51,6 +52,7 @@
#include "saga2/automap.h"
#include "saga2/images.h"
#include "saga2/config.h"
#include "saga2/contain.h"
namespace Saga2 {

View File

@ -27,11 +27,13 @@
#ifndef SAGA2_TILEMODE_H
#define SAGA2_TILEMODE_H
#include "saga2/fta.h"
#include "saga2/idtypes.h"
namespace Saga2 {
class SaveFileConstructor;
class SaveFileReader;
// Function to enable/disable user interface keys
bool enableUIKeys(bool enabled);