2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2003-04-25 15:17:53 +00:00
|
|
|
*
|
|
|
|
* 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
|
2008-01-05 12:45:14 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2003-04-25 15:17:53 +00:00
|
|
|
* 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
|
2005-10-18 01:30:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2003-04-25 15:17:53 +00:00
|
|
|
*
|
2006-02-11 10:03:24 +00:00
|
|
|
* $URL$
|
|
|
|
* $Id$
|
2003-04-25 15:17:53 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2003-10-05 20:21:20 +00:00
|
|
|
#ifndef SKY_DEBUG_H
|
|
|
|
#define SKY_DEBUG_H
|
|
|
|
|
2007-09-19 08:40:12 +00:00
|
|
|
|
2003-10-05 20:21:20 +00:00
|
|
|
#include "common/scummsys.h"
|
2006-09-16 16:58:27 +00:00
|
|
|
#include "gui/debugger.h"
|
2003-04-25 15:17:53 +00:00
|
|
|
|
2004-01-03 01:58:58 +00:00
|
|
|
namespace Sky {
|
|
|
|
|
2004-09-13 17:05:23 +00:00
|
|
|
class Logic;
|
|
|
|
class Mouse;
|
|
|
|
class Screen;
|
2004-12-15 06:48:08 +00:00
|
|
|
class SkyCompact;
|
2004-09-13 17:05:23 +00:00
|
|
|
|
2006-09-16 16:58:27 +00:00
|
|
|
class Debugger : public GUI::Debugger {
|
2004-09-13 17:05:23 +00:00
|
|
|
public:
|
2004-12-15 06:48:08 +00:00
|
|
|
Debugger(Logic *logic, Mouse *mouse, Screen *screen, SkyCompact *skyCompact);
|
2005-06-21 22:08:21 +00:00
|
|
|
virtual ~Debugger(); // we need this here for __SYMBIAN32__ archaic gcc/UIQ
|
2004-09-13 17:05:23 +00:00
|
|
|
bool showGrid() { return _showGrid; }
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2004-09-13 17:05:23 +00:00
|
|
|
protected:
|
|
|
|
virtual void preEnter();
|
|
|
|
virtual void postEnter();
|
|
|
|
|
|
|
|
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);
|
2004-10-22 18:37:42 +00:00
|
|
|
bool Cmd_Section(int argc, const char **argv);
|
2007-04-01 00:00:28 +00:00
|
|
|
bool Cmd_LogicList(int argc, const char **argv);
|
|
|
|
|
|
|
|
void dumpCompact(uint16 cptId);
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2004-09-13 17:05:23 +00:00
|
|
|
Logic *_logic;
|
|
|
|
Mouse *_mouse;
|
|
|
|
Screen *_screen;
|
2004-12-15 06:48:08 +00:00
|
|
|
SkyCompact *_skyCompact;
|
2004-09-13 17:05:23 +00:00
|
|
|
|
|
|
|
bool _showGrid;
|
|
|
|
};
|
|
|
|
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2004-01-03 15:57:57 +00:00
|
|
|
class Debug {
|
2003-04-25 15:17:53 +00:00
|
|
|
public:
|
|
|
|
static void logic(uint32 logic);
|
|
|
|
static void script(uint32 command, uint16 *scriptData);
|
|
|
|
static void mcode(uint32 mcode, uint32 a, uint32 b, uint32 c);
|
|
|
|
};
|
|
|
|
|
2004-01-03 01:58:58 +00:00
|
|
|
} // End of namespace Sky
|
|
|
|
|
2003-10-05 20:21:20 +00:00
|
|
|
#endif
|