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.
|
2005-12-09 14:52:31 +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
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KYRA_DEBUGGER_H
|
|
|
|
#define KYRA_DEBUGGER_H
|
|
|
|
|
2006-09-16 16:58:27 +00:00
|
|
|
#include "gui/debugger.h"
|
2005-12-09 14:52:31 +00:00
|
|
|
|
|
|
|
namespace Kyra {
|
|
|
|
|
2008-05-11 23:16:50 +00:00
|
|
|
class KyraEngine_v1;
|
2008-05-11 22:32:37 +00:00
|
|
|
class KyraEngine_LoK;
|
2008-05-04 15:56:28 +00:00
|
|
|
class KyraEngine_v2;
|
2008-05-02 14:46:30 +00:00
|
|
|
class KyraEngine_HoF;
|
2005-12-09 14:52:31 +00:00
|
|
|
|
2008-03-28 09:00:30 +00:00
|
|
|
class Debugger : public ::GUI::Debugger {
|
2005-12-09 14:52:31 +00:00
|
|
|
public:
|
2008-05-11 23:16:50 +00:00
|
|
|
Debugger(KyraEngine_v1 *vm);
|
2005-12-09 14:52:31 +00:00
|
|
|
virtual ~Debugger() {} // we need this for __SYMBIAN32__ archaic gcc/UIQ
|
2007-09-23 23:37:01 +00:00
|
|
|
|
2011-11-18 02:47:51 +00:00
|
|
|
virtual void initialize();
|
|
|
|
|
2007-09-23 23:37:01 +00:00
|
|
|
protected:
|
2008-05-11 23:16:50 +00:00
|
|
|
KyraEngine_v1 *_vm;
|
2007-09-23 23:37:01 +00:00
|
|
|
|
|
|
|
bool cmd_setScreenDebug(int argc, const char **argv);
|
2008-03-27 15:27:31 +00:00
|
|
|
bool cmd_loadPalette(int argc, const char **argv);
|
2007-09-24 21:58:11 +00:00
|
|
|
bool cmd_showFacings(int argc, const char **argv);
|
2008-03-27 16:12:48 +00:00
|
|
|
bool cmd_gameSpeed(int argc, const char **argv);
|
2009-06-07 20:43:43 +00:00
|
|
|
bool cmd_listFlags(int argc, const char **argv);
|
|
|
|
bool cmd_toggleFlag(int argc, const char **argv);
|
|
|
|
bool cmd_queryFlag(int argc, const char **argv);
|
2008-03-27 22:05:13 +00:00
|
|
|
bool cmd_listTimers(int argc, const char **argv);
|
|
|
|
bool cmd_setTimerCountdown(int argc, const char **argv);
|
2007-07-29 16:31:29 +00:00
|
|
|
};
|
|
|
|
|
2008-05-11 22:32:37 +00:00
|
|
|
class Debugger_LoK : public Debugger {
|
2007-07-29 16:31:29 +00:00
|
|
|
public:
|
2008-05-11 22:32:37 +00:00
|
|
|
Debugger_LoK(KyraEngine_LoK *vm);
|
|
|
|
virtual ~Debugger_LoK() {} // we need this for __SYMBIAN32__ archaic gcc/UIQ
|
2005-12-09 14:52:31 +00:00
|
|
|
|
2011-11-18 02:47:51 +00:00
|
|
|
virtual void initialize();
|
2005-12-09 14:52:31 +00:00
|
|
|
protected:
|
2008-05-11 22:32:37 +00:00
|
|
|
KyraEngine_LoK *_vm;
|
2005-12-09 14:52:31 +00:00
|
|
|
|
|
|
|
bool cmd_enterRoom(int argc, const char **argv);
|
2009-05-12 14:55:45 +00:00
|
|
|
bool cmd_listScenes(int argc, const char **argv);
|
2005-12-09 23:02:16 +00:00
|
|
|
bool cmd_giveItem(int argc, const char **argv);
|
2007-09-23 23:00:54 +00:00
|
|
|
bool cmd_listBirthstones(int argc, const char **argv);
|
2005-12-09 14:52:31 +00:00
|
|
|
};
|
|
|
|
|
2007-09-24 20:02:08 +00:00
|
|
|
class Debugger_v2 : public Debugger {
|
|
|
|
public:
|
2008-05-04 15:56:28 +00:00
|
|
|
Debugger_v2(KyraEngine_v2 *vm);
|
2007-09-24 20:02:08 +00:00
|
|
|
virtual ~Debugger_v2() {}
|
|
|
|
|
2011-11-18 02:47:51 +00:00
|
|
|
virtual void initialize();
|
2007-09-24 20:02:08 +00:00
|
|
|
protected:
|
2008-05-04 15:56:28 +00:00
|
|
|
KyraEngine_v2 *_vm;
|
2007-09-24 21:58:11 +00:00
|
|
|
|
|
|
|
bool cmd_enterScene(int argc, const char **argv);
|
|
|
|
bool cmd_listScenes(int argc, const char **argv);
|
|
|
|
bool cmd_sceneInfo(int argc, const char **argv);
|
|
|
|
bool cmd_characterInfo(int argc, const char **argv);
|
|
|
|
bool cmd_sceneToFacing(int argc, const char **argv);
|
2008-03-09 14:46:24 +00:00
|
|
|
bool cmd_giveItem(int argc, const char **argv);
|
2007-09-24 20:02:08 +00:00
|
|
|
};
|
|
|
|
|
2008-05-04 15:56:28 +00:00
|
|
|
class Debugger_HoF : public Debugger_v2 {
|
2008-04-25 16:02:20 +00:00
|
|
|
public:
|
2008-05-04 15:56:28 +00:00
|
|
|
Debugger_HoF(KyraEngine_HoF *vm);
|
2008-04-25 16:02:20 +00:00
|
|
|
|
2011-11-18 02:47:51 +00:00
|
|
|
virtual void initialize();
|
2008-04-25 16:02:20 +00:00
|
|
|
protected:
|
2008-05-04 15:56:28 +00:00
|
|
|
KyraEngine_HoF *_vm;
|
2008-04-25 16:02:20 +00:00
|
|
|
|
2008-05-04 15:56:28 +00:00
|
|
|
bool cmd_passcodes(int argc, const char **argv);
|
|
|
|
};
|
2008-04-25 16:02:20 +00:00
|
|
|
|
2009-06-02 11:58:30 +00:00
|
|
|
#ifdef ENABLE_LOL
|
2009-06-01 22:03:27 +00:00
|
|
|
class LoLEngine;
|
|
|
|
|
|
|
|
class Debugger_LoL : public Debugger {
|
|
|
|
public:
|
|
|
|
Debugger_LoL(LoLEngine *vm);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
LoLEngine *_vm;
|
|
|
|
};
|
2009-06-02 11:58:30 +00:00
|
|
|
#endif // ENABLE_LOL
|
2009-06-01 22:03:27 +00:00
|
|
|
|
2011-11-06 16:53:52 +00:00
|
|
|
#ifdef ENABLE_EOB
|
2011-12-12 15:23:01 +00:00
|
|
|
class EoBCoreEngine;
|
2011-11-06 16:53:52 +00:00
|
|
|
|
2011-12-12 15:23:01 +00:00
|
|
|
class Debugger_EoB : public Debugger {
|
2011-11-06 16:53:52 +00:00
|
|
|
public:
|
2011-12-12 15:23:01 +00:00
|
|
|
Debugger_EoB(EoBCoreEngine *vm);
|
2011-11-06 16:53:52 +00:00
|
|
|
|
2012-01-15 00:13:03 +00:00
|
|
|
virtual void initialize();
|
2011-11-06 16:53:52 +00:00
|
|
|
protected:
|
2011-12-12 15:23:01 +00:00
|
|
|
EoBCoreEngine *_vm;
|
2012-01-15 00:13:03 +00:00
|
|
|
|
|
|
|
bool cmd_importSaveFile(int argc, const char **argv);
|
2013-04-07 20:38:25 +00:00
|
|
|
bool cmd_saveOriginal(int argc, const char **argv);
|
2013-04-20 20:25:17 +00:00
|
|
|
bool cmd_listMonsters(int argc, const char **argv);
|
2013-04-21 22:57:38 +00:00
|
|
|
bool cmd_showPosition(int argc, const char **argv);
|
|
|
|
bool cmd_setPosition(int argc, const char **argv);
|
2013-04-22 18:29:17 +00:00
|
|
|
bool cmd_openDoor(int argc, const char **argv);
|
|
|
|
bool cmd_closeDoor(int argc, const char **argv);
|
2013-04-27 19:43:47 +00:00
|
|
|
bool cmd_listFlags(int argc, const char **argv);
|
|
|
|
bool cmd_setFlag(int argc, const char **argv);
|
|
|
|
bool cmd_clearFlag(int argc, const char **argv);
|
2011-11-06 16:53:52 +00:00
|
|
|
};
|
|
|
|
#endif // ENABLE_EOB
|
|
|
|
|
2005-12-09 14:52:31 +00:00
|
|
|
} // End of namespace Kyra
|
|
|
|
|
|
|
|
#endif
|