HDB: Reduce header dependency
This commit is contained in:
parent
b845e70102
commit
c3d0f49538
17 changed files with 42 additions and 25 deletions
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
#include "hdb/mpc.h"
|
||||
|
||||
namespace HDB {
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
|
||||
namespace HDB {
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
#include "hdb/mpc.h"
|
||||
|
||||
namespace HDB {
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
#include "hdb/mpc.h"
|
||||
|
||||
namespace HDB {
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
|
||||
namespace HDB {
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
#include "hdb/menu.h"
|
||||
#include "hdb/mpc.h"
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
|
||||
namespace HDB {
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
#include "hdb/mpc.h"
|
||||
|
||||
namespace HDB {
|
||||
|
|
|
@ -29,28 +29,6 @@
|
|||
|
||||
namespace HDB {
|
||||
|
||||
enum {
|
||||
kScreenWidth = 640,
|
||||
kScreenHeight = 480,
|
||||
kScreenDrawWidth = (kScreenWidth - 160), // visible pixels wide
|
||||
kScreenDrawHeight = 480,
|
||||
kTileWidth = 32,
|
||||
kTileHeight = 32,
|
||||
kMaxSkies = 10,
|
||||
kNum3DStars = 300,
|
||||
kFontSpace = 5,
|
||||
kFontIncrement = 1,
|
||||
kGameFPS = 60,
|
||||
kAnimFrameDelay = kGameFPS / 30,
|
||||
kAnimSlowFrames = kAnimFrameDelay * 10,
|
||||
kAnimMediumFrames = kAnimFrameDelay * 6,
|
||||
kAnimFastFrames = kAnimFrameDelay * 2,
|
||||
kProgressY = (kScreenHeight - 64)
|
||||
};
|
||||
|
||||
class Tile;
|
||||
class Picture;
|
||||
|
||||
struct TileLookup {
|
||||
const char *filename;
|
||||
Tile *tData;
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include "common/memstream.h"
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
#include "hdb/console.h"
|
||||
#include "hdb/menu.h"
|
||||
#include "hdb/mpc.h"
|
||||
|
|
|
@ -46,7 +46,33 @@
|
|||
#include "engines/util.h"
|
||||
#include "console.h"
|
||||
|
||||
#include "hdb/gfx.h"
|
||||
namespace HDB {
|
||||
class Tile;
|
||||
class Picture;
|
||||
class Menu;
|
||||
class Gfx;
|
||||
|
||||
enum {
|
||||
kScreenWidth = 640,
|
||||
kScreenHeight = 480,
|
||||
kScreenDrawWidth = (kScreenWidth - 160), // visible pixels wide
|
||||
kScreenDrawHeight = 480,
|
||||
kTileWidth = 32,
|
||||
kTileHeight = 32,
|
||||
kMaxSkies = 10,
|
||||
kNum3DStars = 300,
|
||||
kFontSpace = 5,
|
||||
kFontIncrement = 1,
|
||||
kGameFPS = 60,
|
||||
kAnimFrameDelay = kGameFPS / 30,
|
||||
kAnimSlowFrames = kAnimFrameDelay * 10,
|
||||
kAnimMediumFrames = kAnimFrameDelay * 6,
|
||||
kAnimFastFrames = kAnimFrameDelay * 2,
|
||||
kProgressY = (kScreenHeight - 64)
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#include "hdb/ai.h"
|
||||
#include "hdb/ai-player.h"
|
||||
#include "hdb/file-manager.h"
|
||||
|
@ -60,8 +86,6 @@ struct ADGameDescription;
|
|||
|
||||
namespace HDB {
|
||||
|
||||
class Menu;
|
||||
|
||||
enum GameFeatures {
|
||||
ADGF_TALKIE = 1 << 0
|
||||
};
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
#include "hdb/menu.h"
|
||||
|
||||
namespace HDB {
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "common/debug.h"
|
||||
|
||||
#include "hdb/lua-script.h"
|
||||
#include "hdb/gfx.h"
|
||||
#include "hdb/mpc.h"
|
||||
|
||||
namespace HDB {
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
|
||||
namespace HDB {
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
#include "hdb/menu.h"
|
||||
#include "hdb/mpc.h"
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
|
||||
namespace HDB {
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "hdb/hdb.h"
|
||||
#include "hdb/gfx.h"
|
||||
#include "hdb/mpc.h"
|
||||
|
||||
namespace HDB {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue