HUGO: Reduce header dependencies

This commit is contained in:
Ori Avtalion 2016-04-13 15:23:11 +03:00
parent 31130f08dc
commit cba3909dfd
15 changed files with 36 additions and 10 deletions

View File

@ -26,7 +26,8 @@
#include "image/bmp.h"
#include "hugo/hugo.h"
#include "hugo/display.h"
#include "hugo/dialogs.h"
#include "hugo/file.h"
#include "hugo/parser.h"
#include "hugo/schedule.h"
#include "hugo/sound.h"

View File

@ -28,6 +28,8 @@
namespace Hugo {
class HugoEngine;
enum MenuOption {
kMenuWhat = 0,
kMenuMusic,

View File

@ -37,6 +37,7 @@
#include "hugo/hugo.h"
#include "hugo/display.h"
#include "hugo/file.h"
#include "hugo/inventory.h"
#include "hugo/util.h"
#include "hugo/object.h"

View File

@ -30,6 +30,11 @@
#ifndef HUGO_DISPLAY_H
#define HUGO_DISPLAY_H
namespace Common {
class ReadStream;
class WriteStream;
}
namespace Hugo {
enum OverlayState {kOvlUndef, kOvlForeground, kOvlBackground}; // Overlay state

View File

@ -30,6 +30,8 @@
#ifndef HUGO_FILE_H
#define HUGO_FILE_H
#include "common/file.h"
namespace Hugo {
/**
* Enumerate overlay file types

View File

@ -29,7 +29,10 @@
#include "common/textconsole.h"
#include "hugo/hugo.h"
#include "hugo/console.h"
#include "hugo/dialogs.h"
#include "hugo/file.h"
#include "hugo/game.h"
#include "hugo/schedule.h"
#include "hugo/display.h"
#include "hugo/mouse.h"

View File

@ -24,19 +24,16 @@
#define HUGO_H
#include "engines/engine.h"
#include "common/file.h"
#include "hugo/console.h"
#include "hugo/dialogs.h"
// This include is here temporarily while the engine is being refactored.
#include "hugo/game.h"
#include "hugo/file.h"
#define HUGO_DAT_VER_MAJ 0 // 1 byte
#define HUGO_DAT_VER_MIN 42 // 1 byte
#define DATAALIGNMENT 4
namespace Common {
class SeekableReadStream;
class RandomSource;
}
@ -209,6 +206,8 @@ class SoundHandler;
class IntroHandler;
class ObjectHandler;
class TextHandler;
class TopMenu;
class HugoConsole;
class HugoEngine : public Engine {
public:

View File

@ -29,9 +29,13 @@
#include "common/system.h"
#include "common/textconsole.h"
#include "graphics/font.h"
#include "graphics/pixelformat.h"
#include "hugo/hugo.h"
#include "hugo/intro.h"
#include "hugo/file.h"
#include "hugo/game.h"
#include "hugo/util.h"
#include "hugo/display.h"
#include "hugo/sound.h"

View File

@ -29,6 +29,7 @@
#ifndef INTRO_H
#define INTRO_H
#include "graphics/surface.h"
#include "graphics/fonts/winfont.h"
namespace Hugo {

View File

@ -33,6 +33,7 @@
#include "common/system.h"
#include "hugo/hugo.h"
#include "hugo/dialogs.h"
#include "hugo/game.h"
#include "hugo/mouse.h"
#include "hugo/schedule.h"

View File

@ -29,6 +29,13 @@
#ifndef HUGO_MOUSE_H
#define HUGO_MOUSE_H
#include "hugo/game.h"
namespace Common {
class ReadStream;
}
namespace Hugo {
class MouseHandler {

View File

@ -29,12 +29,12 @@
#include "common/events.h"
#include "common/textconsole.h"
#include "gui/debugger.h"
#include "hugo/hugo.h"
#include "hugo/display.h"
#include "hugo/parser.h"
#include "hugo/file.h"
#include "hugo/schedule.h"
#include "hugo/util.h"
#include "hugo/route.h"
#include "hugo/sound.h"

View File

@ -32,6 +32,7 @@
namespace Common {
struct Event;
class ReadStream;
}
namespace Hugo {

View File

@ -20,6 +20,7 @@
*
*/
#include "common/system.h"
#include "common/stream.h"
#include "hugo/hugo.h"
#include "hugo/text.h"

View File

@ -28,13 +28,11 @@
*/
#include "common/system.h"
#include "common/util.h"
#include "gui/message.h"
#include "hugo/game.h"
#include "hugo/hugo.h"
#include "hugo/dialogs.h"
#include "hugo/util.h"
#include "hugo/sound.h"
#include "hugo/text.h"
namespace Hugo {