aboutsummaryrefslogtreecommitdiff
path: root/sky/debug.h
diff options
context:
space:
mode:
authorJoost Peters2004-09-13 17:05:23 +0000
committerJoost Peters2004-09-13 17:05:23 +0000
commita57fcac59a47c406251e129e327487db90a14507 (patch)
tree866b515b54b1ffa8d32702867ab74a488d51625b /sky/debug.h
parent1f9e3739558405893eb62d6ac0a6d15d76abc2dc (diff)
downloadscummvm-rg350-a57fcac59a47c406251e129e327487db90a14507.tar.gz
scummvm-rg350-a57fcac59a47c406251e129e327487db90a14507.tar.bz2
scummvm-rg350-a57fcac59a47c406251e129e327487db90a14507.zip
Add debugger for BASS.
This should help in tracking down remaining bugs, such as the grid problems and walk deadlocks. svn-id: r15098
Diffstat (limited to 'sky/debug.h')
-rw-r--r--sky/debug.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/sky/debug.h b/sky/debug.h
index 01a64a245d..a6de197756 100644
--- a/sky/debug.h
+++ b/sky/debug.h
@@ -24,9 +24,40 @@
#include "stdafx.h"
#include "common/scummsys.h"
+#include "common/debugger.h"
namespace Sky {
+class Logic;
+class Mouse;
+class Screen;
+
+class Debugger : public Common::Debugger<Debugger> {
+public:
+ Debugger(Logic *logic, Mouse *mouse, Screen *screen);
+ bool showGrid() { return _showGrid; }
+
+protected:
+ virtual void preEnter();
+ virtual void postEnter();
+
+ bool Cmd_Exit(int argc, const char **argv);
+ bool Cmd_Help(int argc, const char **argv);
+ bool Cmd_ShowGrid(int argc, const char **argv);
+ bool Cmd_ReloadGrid(int argc, const char **argv);
+ bool Cmd_ShowCompact(int argc, const char **argv);
+ bool Cmd_LogicCommand(int argc, const char **argv);
+ bool Cmd_Info(int argc, const char **argv);
+ bool Cmd_ScriptVar(int argc, const char **argv);
+
+ Logic *_logic;
+ Mouse *_mouse;
+ Screen *_screen;
+
+ bool _showGrid;
+};
+
+
class Debug {
public:
static void fetchCompact(uint32 a);