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.
|
2002-12-16 06:21:08 +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
|
|
|
|
* 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
|
2005-10-18 01:30:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2002-12-16 06:21:08 +00:00
|
|
|
*
|
2006-02-11 09:55:41 +00:00
|
|
|
* $URL$
|
|
|
|
* $Id$
|
2002-12-16 06:21:08 +00:00
|
|
|
*/
|
|
|
|
|
2006-09-16 16:58:27 +00:00
|
|
|
#ifndef SCUMM_DEBUGGER_H
|
|
|
|
#define SCUMM_DEBUGGER_H
|
2002-12-16 22:46:17 +00:00
|
|
|
|
2006-09-16 16:58:27 +00:00
|
|
|
#include "gui/debugger.h"
|
2003-10-26 19:16:59 +00:00
|
|
|
|
2003-10-03 18:33:57 +00:00
|
|
|
namespace Scumm {
|
|
|
|
|
2003-10-02 22:42:03 +00:00
|
|
|
class ScummEngine;
|
2002-12-16 06:21:08 +00:00
|
|
|
|
2006-09-16 16:58:27 +00:00
|
|
|
class ScummDebugger : public GUI::Debugger {
|
2002-12-16 06:21:08 +00:00
|
|
|
public:
|
2003-10-12 17:49:52 +00:00
|
|
|
ScummDebugger(ScummEngine *s);
|
2005-06-21 22:19:02 +00:00
|
|
|
virtual ~ScummDebugger(); // we need this here for __SYMBIAN32__
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2002-12-16 06:21:08 +00:00
|
|
|
protected:
|
2003-10-12 17:49:52 +00:00
|
|
|
ScummEngine *_vm;
|
2003-10-26 21:30:52 +00:00
|
|
|
bool _old_soundsPaused;
|
2002-12-16 06:21:08 +00:00
|
|
|
|
2003-10-26 21:30:52 +00:00
|
|
|
virtual void preEnter();
|
|
|
|
virtual void postEnter();
|
2002-12-16 06:21:08 +00:00
|
|
|
|
|
|
|
// Commands
|
2002-12-30 01:27:33 +00:00
|
|
|
bool Cmd_Room(int argc, const char **argv);
|
|
|
|
bool Cmd_LoadGame(int argc, const char **argv);
|
|
|
|
bool Cmd_SaveGame(int argc, const char **argv);
|
2003-04-22 04:40:30 +00:00
|
|
|
bool Cmd_Restart(int argc, const char **argv);
|
2002-12-30 01:27:33 +00:00
|
|
|
|
|
|
|
bool Cmd_PrintActor(int argc, const char **argv);
|
|
|
|
bool Cmd_PrintBox(int argc, const char **argv);
|
2003-05-31 14:32:35 +00:00
|
|
|
bool Cmd_PrintBoxMatrix(int argc, const char **argv);
|
2003-03-02 07:50:49 +00:00
|
|
|
bool Cmd_PrintObjects(int argc, const char **argv);
|
2003-01-07 09:46:51 +00:00
|
|
|
bool Cmd_Actor(int argc, const char **argv);
|
2004-11-28 02:04:14 +00:00
|
|
|
bool Cmd_Camera(int argc, const char **argv);
|
2003-03-02 07:50:49 +00:00
|
|
|
bool Cmd_Object(int argc, const char **argv);
|
2003-04-23 05:05:20 +00:00
|
|
|
bool Cmd_Script(int argc, const char **argv);
|
|
|
|
bool Cmd_PrintScript(int argc, const char **argv);
|
2003-04-25 02:53:35 +00:00
|
|
|
bool Cmd_ImportRes(int argc, const char **argv);
|
2003-04-30 21:16:45 +00:00
|
|
|
|
|
|
|
bool Cmd_PrintDraft(int argc, const char **argv);
|
|
|
|
|
2004-01-10 05:20:15 +00:00
|
|
|
bool Cmd_Debug(int argc, const char **argv);
|
2003-01-18 14:51:06 +00:00
|
|
|
bool Cmd_DebugLevel(int argc, const char **argv);
|
2003-04-20 06:55:09 +00:00
|
|
|
|
|
|
|
bool Cmd_Show(int argc, const char **argv);
|
|
|
|
bool Cmd_Hide(int argc, const char **argv);
|
2003-05-17 19:03:25 +00:00
|
|
|
|
2003-08-11 14:48:21 +00:00
|
|
|
bool Cmd_IMuse (int argc, const char **argv);
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2003-01-18 14:51:06 +00:00
|
|
|
void printBox(int box);
|
2003-05-14 00:35:08 +00:00
|
|
|
void drawBox(int box);
|
2002-12-16 06:21:08 +00:00
|
|
|
};
|
|
|
|
|
2003-10-03 18:33:57 +00:00
|
|
|
} // End of namespace Scumm
|
|
|
|
|
2002-12-16 06:21:08 +00:00
|
|
|
#endif
|