diff options
author | Max Horn | 2002-07-27 21:06:50 +0000 |
---|---|---|
committer | Max Horn | 2002-07-27 21:06:50 +0000 |
commit | 330d06ba1bb6cf26cea6b66dd42ba41cf369c54d (patch) | |
tree | a5aab9572bfe614f4c9dce607b72ee9359e12182 /debug.h | |
parent | 064c16dd2161370d4238becdd59322f7d9c9b981 (diff) | |
download | scummvm-rg350-330d06ba1bb6cf26cea6b66dd42ba41cf369c54d.tar.gz scummvm-rg350-330d06ba1bb6cf26cea6b66dd42ba41cf369c54d.tar.bz2 scummvm-rg350-330d06ba1bb6cf26cea6b66dd42ba41cf369c54d.zip |
moved ScummDebugger into seperate header; re-added box drawing (debug) code; changed some debugg hotkeys: (q)uit became (c)onitune and (e)xit became quit. This matches gdb, and is IMHO either to understand, too
svn-id: r4660
Diffstat (limited to 'debug.h')
-rw-r--r-- | debug.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/debug.h b/debug.h new file mode 100644 index 0000000000..d620f42a02 --- /dev/null +++ b/debug.h @@ -0,0 +1,50 @@ +/* ScummVM - Scumm Interpreter + * Copyright (C) 2002 The ScummVM project + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Header$ + */ + +#ifndef DEBUG_H +#define DEBUG_H + +class Scumm; + +struct ScummDebugger { + Scumm *_s; + byte _command; + char *_parameters; + + bool _welcome; + + int _go_amount; + + char _cmd_buffer[256]; + + void on_frame(); + bool do_command(); + void enter(); + int get_command(); + void attach(Scumm *s); + void detach(); + + void printActors(int act); + void printScripts(); + + void boxTest(int box); +}; + +#endif |