aboutsummaryrefslogtreecommitdiff
path: root/sword2/sword2.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-10-26 15:42:49 +0000
committerTorbjörn Andersson2003-10-26 15:42:49 +0000
commit7c4cc25cec714073d947e6451b4bf76cd53624ef (patch)
tree79a4c235fb9b62e0f49e069d87645f99022b2859 /sword2/sword2.h
parent2a139049d621479da4898fcb22c742c52d17eac3 (diff)
downloadscummvm-rg350-7c4cc25cec714073d947e6451b4bf76cd53624ef.tar.gz
scummvm-rg350-7c4cc25cec714073d947e6451b4bf76cd53624ef.tar.bz2
scummvm-rg350-7c4cc25cec714073d947e6451b4bf76cd53624ef.zip
Enable the debug console. Actually, what I've done is to adapt the debug
console from the SCUMM engine. I decided that would be easier than to clean up the original console code. Unfortunately there's a bunch of code that I just copied - a pretty lousy form of code-reusal. It'd be nice if the console could be made part of the Engine class, or something like that. Most of the debug commands seem to be working. Some aren't relevant for ScummVM, and some are a bit obscure so I'm not quite sure what they're supposed to be doing. svn-id: r10978
Diffstat (limited to 'sword2/sword2.h')
-rw-r--r--sword2/sword2.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/sword2/sword2.h b/sword2/sword2.h
index 08147152a2..9ce7c04cbb 100644
--- a/sword2/sword2.h
+++ b/sword2/sword2.h
@@ -25,6 +25,8 @@
#include "common/map.h"
#include "common/rect.h"
#include "common/str.h"
+#include "gui/console.h"
+#include "bs2/console.h"
#include "bs2/driver/d_sound.h"
#include "bs2/driver/d_draw.h"
@@ -53,11 +55,6 @@ void UnpauseGame(void);
void sleepUntil(int32 time);
-#define HEAD_LEN 8
-
-extern uint8 version_string[]; // for displaying from the console
-extern uint8 unencoded_name[];
-
// TODO move stuff into class
class Sword2Engine : public Engine {
@@ -77,8 +74,14 @@ public:
uint32 _features;
byte _gameId;
char *_targetName; // target name for saves
+
Sound *_sound;
Display *_display;
+
+ NewGui *_newgui;
+ Debugger *_debugger;
+ ConsoleDialog *_debuggerDialog;
+
Common::RandomSource _rnd;
uint32 _speechFontId;