HDB: Reduce header dependency

This commit is contained in:
Eugene Sandulenko
2019-09-03 17:17:28 +02:00
parent 810ac81b0f
commit 951943ecec
14 changed files with 37 additions and 17 deletions
+2
View File
@@ -20,6 +20,8 @@
*
*/
#include "common/random.h"
#include "hdb/hdb.h"
#include "hdb/ai.h"
#include "hdb/ai-player.h"
+2
View File
@@ -20,6 +20,8 @@
*
*/
#include "common/random.h"
#include "hdb/hdb.h"
#include "hdb/ai.h"
#include "hdb/ai-player.h"
+1 -1
View File
@@ -21,7 +21,7 @@
*/
#include "common/debug.h"
#include "common/file.h"
#include "common/error.h"
#include "common/memstream.h"
#include "hdb/hdb.h"
#include "hdb/file-manager.h"
+4 -6
View File
@@ -23,11 +23,9 @@
#ifndef HDB_FILE_MANAGER_H
#define HDB_FILE_MANAGER_H
#include "common/array.h"
#include "common/file.h"
#include "common/error.h"
#include "common/stream.h"
#include "common/memstream.h"
namespace Common {
class File;
}
#define MPCIterator Common::Array<MPCEntry *>::iterator
@@ -70,7 +68,7 @@ public:
uint32 id;
uint32 dirSize;
} _dataHeader;
bool openMPC(const Common::String &filename);
void closeMPC();
void seek(int32 offset, int flag);
+1
View File
@@ -22,6 +22,7 @@
#include "common/cosinetables.h"
#include "common/sinetables.h"
#include "common/random.h"
#include "hdb/hdb.h"
#include "hdb/ai.h"
+2
View File
@@ -20,6 +20,8 @@
*
*/
#include "common/random.h"
#include "hdb/hdb.h"
#include "hdb/ai.h"
#include "hdb/file-manager.h"
+8 -4
View File
@@ -25,10 +25,10 @@
#include "common/scummsys.h"
#include "common/system.h"
#include "common/array.h"
#include "common/events.h"
#include "common/str.h"
#include "common/random.h"
//#include "common/array.h"
//#include "common/events.h"
//#include "common/str.h"
//#include "common/random.h"
#include "common/savefile.h"
#include "common/config-manager.h"
#include "graphics/surface.h"
@@ -42,6 +42,10 @@
#include "engines/engine.h"
#include "engines/util.h"
namespace Common {
class RandomSource;
}
namespace HDB {
class AI;
struct AIEntity;
+2
View File
@@ -23,6 +23,8 @@
#ifndef HDB_INPUT_H
#define HDB_INPUT_H
#include "common/events.h"
namespace HDB {
enum Button {
+1
View File
@@ -20,6 +20,7 @@
*
*/
#include "common/file.h"
#include "common/lua/lua.h"
#include "common/lua/lauxlib.h"
#include "common/lua/lualib.h"
+2
View File
@@ -20,6 +20,8 @@
*
*/
#include "common/random.h"
#include "hdb/hdb.h"
#include "hdb/ai.h"
#include "hdb/gfx.h"
+2
View File
@@ -23,6 +23,8 @@
#ifndef HDB_MENU_H
#define HDB_MENU_H
#include "common/events.h"
namespace HDB {
#define CONFIG_MUSICVOL "music_volume"
+2
View File
@@ -20,6 +20,8 @@
*
*/
#include "common/debug.h"
#include "hdb/hdb.h"
#include "hdb/mpc.h"
#include "hdb/sound.h"
+6 -6
View File
@@ -1416,24 +1416,24 @@ public:
void loadSaveFile(Common::InSaveFile *in);
void clearPersistent();
void setMusicVolume(int value) {
debug(9, "STUB: Add Music System Variables");
//debug(9, "STUB: Add Music System Variables");
}
int getMusicVolume() {
debug(9, "STUB: Add Music System Variables");
//debug(9, "STUB: Add Music System Variables");
return 1;
}
void setSFXVolume(int value) {
debug(9, "STUB: Add Music System Variables");
//debug(9, "STUB: Add Music System Variables");
}
int getSFXVolume() {
debug(9, "STUB: Add Music System Variables");
//debug(9, "STUB: Add Music System Variables");
return 1;
}
void setVoiceStatus(int value) {
debug(9, "STUB: Add Music System Variables");
//debug(9, "STUB: Add Music System Variables");
}
int getVoiceStatus() {
debug(9, "STUB: Add Music System Variables");
//debug(9, "STUB: Add Music System Variables");
return 1;
}
+2
View File
@@ -20,6 +20,8 @@
*
*/
#include "common/random.h"
#include "hdb/hdb.h"
#include "hdb/ai.h"
#include "hdb/gfx.h"