mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
HDB: Reduce header dependency
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "common/random.h"
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/ai.h"
|
||||
#include "hdb/ai-player.h"
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "common/random.h"
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/ai.h"
|
||||
#include "hdb/ai-player.h"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "common/cosinetables.h"
|
||||
#include "common/sinetables.h"
|
||||
#include "common/random.h"
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/ai.h"
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "common/random.h"
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/ai.h"
|
||||
#include "hdb/file-manager.h"
|
||||
|
||||
+8
-4
@@ -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;
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#ifndef HDB_INPUT_H
|
||||
#define HDB_INPUT_H
|
||||
|
||||
#include "common/events.h"
|
||||
|
||||
namespace HDB {
|
||||
|
||||
enum Button {
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "common/file.h"
|
||||
#include "common/lua/lua.h"
|
||||
#include "common/lua/lauxlib.h"
|
||||
#include "common/lua/lualib.h"
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "common/random.h"
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/ai.h"
|
||||
#include "hdb/gfx.h"
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#ifndef HDB_MENU_H
|
||||
#define HDB_MENU_H
|
||||
|
||||
#include "common/events.h"
|
||||
|
||||
namespace HDB {
|
||||
|
||||
#define CONFIG_MUSICVOL "music_volume"
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "common/debug.h"
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/mpc.h"
|
||||
#include "hdb/sound.h"
|
||||
|
||||
+6
-6
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "common/random.h"
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/ai.h"
|
||||
#include "hdb/gfx.h"
|
||||
|
||||
Reference in New Issue
Block a user