Ejemplo n.º 1
0
void Debugger_LoK::initialize() {
	registerCmd("enter",              WRAP_METHOD(Debugger_LoK, cmdEnterRoom));
	registerCmd("scenes",             WRAP_METHOD(Debugger_LoK, cmdListScenes));
	registerCmd("give",               WRAP_METHOD(Debugger_LoK, cmdGiveItem));
	registerCmd("birthstones",        WRAP_METHOD(Debugger_LoK, cmdListBirthstones));
	Debugger::initialize();
}
Ejemplo n.º 2
0
void Debugger_LoK::initialize() {
	DCmd_Register("enter",              WRAP_METHOD(Debugger_LoK, cmd_enterRoom));
	DCmd_Register("scenes",             WRAP_METHOD(Debugger_LoK, cmd_listScenes));
	DCmd_Register("give",               WRAP_METHOD(Debugger_LoK, cmd_giveItem));
	DCmd_Register("birthstones",        WRAP_METHOD(Debugger_LoK, cmd_listBirthstones));
	Debugger::initialize();
}
Ejemplo n.º 3
0
Debugger::Debugger()
	: GUI::Debugger() {

	DCmd_Register("check_gamedata", WRAP_METHOD(Debugger, cmd_checkFiles));
	DCmd_Register("lua_do", WRAP_METHOD(Debugger, cmd_lua_do));
	DCmd_Register("emi_jump", WRAP_METHOD(Debugger, cmd_emi_jump));
}
Ejemplo n.º 4
0
Debugger_LoK::Debugger_LoK(KyraEngine_LoK *vm)
    : Debugger(vm), _vm(vm) {
    DCmd_Register("enter",				WRAP_METHOD(Debugger_LoK, cmd_enterRoom));
    DCmd_Register("scenes",				WRAP_METHOD(Debugger_LoK, cmd_listScenes));
    DCmd_Register("give",				WRAP_METHOD(Debugger_LoK, cmd_giveItem));
    DCmd_Register("birthstones",		WRAP_METHOD(Debugger_LoK, cmd_listBirthstones));
}
Ejemplo n.º 5
0
Debugger::Debugger(VoyeurEngine *vm) : GUI::Debugger(), _vm(vm) {
	// Register methods
	registerCmd("continue", WRAP_METHOD(Debugger, cmdExit));
	registerCmd("time", WRAP_METHOD(Debugger, Cmd_Time));
	registerCmd("hotspots", WRAP_METHOD(Debugger, Cmd_Hotspots));
	registerCmd("mouse", WRAP_METHOD(Debugger, Cmd_Mouse));

	// Set fields
	_isTimeActive = true;
	_showMousePosition = false;
}
Ejemplo n.º 6
0
Debugger::Debugger() : GUI::Debugger() {
	// Register methods
	DCmd_Register("continue", WRAP_METHOD(Debugger, Cmd_Exit));
	DCmd_Register("exit", WRAP_METHOD(Debugger, Cmd_Exit));
	DCmd_Register("time", WRAP_METHOD(Debugger, Cmd_Time));
	DCmd_Register("hotspots", WRAP_METHOD(Debugger, Cmd_Hotspots));
	DCmd_Register("mouse", WRAP_METHOD(Debugger, Cmd_Mouse));

	// Set fields
	_isTimeActive = true;
	_showMousePosition = false;
}
Ejemplo n.º 7
0
void Debugger::initialize() {
	registerCmd("continue",           WRAP_METHOD(Debugger, cmdExit));
	registerCmd("screen_debug_mode",  WRAP_METHOD(Debugger, cmdSetScreenDebug));
	registerCmd("load_palette",       WRAP_METHOD(Debugger, cmdLoadPalette));
	registerCmd("facings",            WRAP_METHOD(Debugger, cmdShowFacings));
	registerCmd("gamespeed",          WRAP_METHOD(Debugger, cmdGameSpeed));
	registerCmd("flags",              WRAP_METHOD(Debugger, cmdListFlags));
	registerCmd("toggleflag",         WRAP_METHOD(Debugger, cmdToggleFlag));
	registerCmd("queryflag",          WRAP_METHOD(Debugger, cmdQueryFlag));
	registerCmd("timers",             WRAP_METHOD(Debugger, cmdListTimers));
	registerCmd("settimercountdown",  WRAP_METHOD(Debugger, cmdSetTimerCountdown));
}
Ejemplo n.º 8
0
void Debugger::initialize() {
	DCmd_Register("continue",           WRAP_METHOD(Debugger, Cmd_Exit));
	DCmd_Register("screen_debug_mode",  WRAP_METHOD(Debugger, cmd_setScreenDebug));
	DCmd_Register("load_palette",       WRAP_METHOD(Debugger, cmd_loadPalette));
	DCmd_Register("facings",            WRAP_METHOD(Debugger, cmd_showFacings));
	DCmd_Register("gamespeed",          WRAP_METHOD(Debugger, cmd_gameSpeed));
	DCmd_Register("flags",              WRAP_METHOD(Debugger, cmd_listFlags));
	DCmd_Register("toggleflag",         WRAP_METHOD(Debugger, cmd_toggleFlag));
	DCmd_Register("queryflag",          WRAP_METHOD(Debugger, cmd_queryFlag));
	DCmd_Register("timers",             WRAP_METHOD(Debugger, cmd_listTimers));
	DCmd_Register("settimercountdown",  WRAP_METHOD(Debugger, cmd_setTimerCountdown));
}
Ejemplo n.º 9
0
void Debugger_EoB::initialize() {
	registerCmd("import_savefile", WRAP_METHOD(Debugger_EoB, cmdImportSaveFile));
	registerCmd("save_original", WRAP_METHOD(Debugger_EoB, cmdSaveOriginal));
	registerCmd("list_monsters", WRAP_METHOD(Debugger_EoB, cmdListMonsters));
	registerCmd("show_position", WRAP_METHOD(Debugger_EoB, cmdShowPosition));
	registerCmd("set_position", WRAP_METHOD(Debugger_EoB, cmdSetPosition));
	registerCmd("open_door", WRAP_METHOD(Debugger_EoB, cmdOpenDoor));
	registerCmd("close_door", WRAP_METHOD(Debugger_EoB, cmdCloseDoor));
	registerCmd("list_flags", WRAP_METHOD(Debugger_EoB, cmdListFlags));
	registerCmd("set_flag", WRAP_METHOD(Debugger_EoB, cmdSetFlag));
	registerCmd("clear_flag", WRAP_METHOD(Debugger_EoB, cmdClearFlag));
}
Ejemplo n.º 10
0
void Debugger_EoB::initialize() {
	DCmd_Register("import_savefile", WRAP_METHOD(Debugger_EoB, cmd_importSaveFile));
	DCmd_Register("save_original", WRAP_METHOD(Debugger_EoB, cmd_saveOriginal));
	DCmd_Register("list_monsters", WRAP_METHOD(Debugger_EoB, cmd_listMonsters));
	DCmd_Register("show_position", WRAP_METHOD(Debugger_EoB, cmd_showPosition));
	DCmd_Register("set_position", WRAP_METHOD(Debugger_EoB, cmd_setPosition));
	DCmd_Register("open_door", WRAP_METHOD(Debugger_EoB, cmd_openDoor));
	DCmd_Register("close_door", WRAP_METHOD(Debugger_EoB, cmd_closeDoor));
	DCmd_Register("list_flags", WRAP_METHOD(Debugger_EoB, cmd_listFlags));
	DCmd_Register("set_flag", WRAP_METHOD(Debugger_EoB, cmd_setFlag));
	DCmd_Register("clear_flag", WRAP_METHOD(Debugger_EoB, cmd_clearFlag));
}
Ejemplo n.º 11
0
Debugger::Debugger() : GUI::Debugger() {
	DCmd_Register("continue",		WRAP_METHOD(Debugger, Cmd_Exit));
	DCmd_Register("scene",			WRAP_METHOD(Debugger, Cmd_Scene));
	DCmd_Register("walk_regions",	WRAP_METHOD(Debugger, Cmd_WalkRegions));
	DCmd_Register("priority_regions",	WRAP_METHOD(Debugger, Cmd_PriorityRegions));
	DCmd_Register("setflag",		WRAP_METHOD(Debugger, Cmd_SetFlag));
	DCmd_Register("getflag",		WRAP_METHOD(Debugger, Cmd_GetFlag));
	DCmd_Register("clearflag",		WRAP_METHOD(Debugger, Cmd_ClearFlag));
	DCmd_Register("listobjects",	WRAP_METHOD(Debugger, Cmd_ListObjects));
	DCmd_Register("moveobject",		WRAP_METHOD(Debugger, Cmd_MoveObject));
	DCmd_Register("hotspots",		WRAP_METHOD(Debugger, Cmd_Hotspots));
}
Ejemplo n.º 12
0
Console::Console(AdlEngine *engine) : GUI::Debugger() {
	_engine = engine;

	registerCmd("nouns", WRAP_METHOD(Console, Cmd_Nouns));
	registerCmd("verbs", WRAP_METHOD(Console, Cmd_Verbs));
	registerCmd("dump_scripts", WRAP_METHOD(Console, Cmd_DumpScripts));
	registerCmd("valid_cmds", WRAP_METHOD(Console, Cmd_ValidCommands));
	registerCmd("region", WRAP_METHOD(Console, Cmd_Region));
	registerCmd("room", WRAP_METHOD(Console, Cmd_Room));
	registerCmd("items", WRAP_METHOD(Console, Cmd_Items));
	registerCmd("give_item", WRAP_METHOD(Console, Cmd_GiveItem));
	registerCmd("vars", WRAP_METHOD(Console, Cmd_Vars));
	registerCmd("var", WRAP_METHOD(Console, Cmd_Var));
}
Ejemplo n.º 13
0
Debugger::Debugger(KyraEngine_v1 *vm)
    : ::GUI::Debugger() {
    _vm = vm;

    DCmd_Register("continue",			WRAP_METHOD(Debugger, Cmd_Exit));
    DCmd_Register("screen_debug_mode",	WRAP_METHOD(Debugger, cmd_setScreenDebug));
    DCmd_Register("load_palette",		WRAP_METHOD(Debugger, cmd_loadPalette));
    DCmd_Register("facings",			WRAP_METHOD(Debugger, cmd_showFacings));
    DCmd_Register("gamespeed",			WRAP_METHOD(Debugger, cmd_gameSpeed));
    DCmd_Register("flags",				WRAP_METHOD(Debugger, cmd_listFlags));
    DCmd_Register("toggleflag",			WRAP_METHOD(Debugger, cmd_toggleFlag));
    DCmd_Register("queryflag",			WRAP_METHOD(Debugger, cmd_queryFlag));
    DCmd_Register("timers",				WRAP_METHOD(Debugger, cmd_listTimers));
    DCmd_Register("settimercountdown",	WRAP_METHOD(Debugger, cmd_setTimerCountdown));
}
Ejemplo n.º 14
0
Debugger::Debugger(Parallaction *vm)
	: GUI::Debugger() {
	_vm = vm;

	DCmd_Register("continue",	WRAP_METHOD(Debugger, Cmd_Exit));
	DCmd_Register("location",	WRAP_METHOD(Debugger, Cmd_Location));
	DCmd_Register("give",		WRAP_METHOD(Debugger, Cmd_Give));
	DCmd_Register("zones",		WRAP_METHOD(Debugger, Cmd_Zones));
	DCmd_Register("animations",	WRAP_METHOD(Debugger, Cmd_Animations));
	DCmd_Register("globalflags",WRAP_METHOD(Debugger, Cmd_GlobalFlags));
	DCmd_Register("localflags",	WRAP_METHOD(Debugger, Cmd_LocalFlags));
	DCmd_Register("locations",	WRAP_METHOD(Debugger, Cmd_Locations));
	DCmd_Register("gfxobjects",	WRAP_METHOD(Debugger, Cmd_GfxObjects));
	DCmd_Register("programs",	WRAP_METHOD(Debugger, Cmd_Programs));

}
Ejemplo n.º 15
0
CSTimeConsole::CSTimeConsole(MohawkEngine_CSTime *vm) : GUI::Debugger(), _vm(vm) {
	DCmd_Register("playSound",			WRAP_METHOD(CSTimeConsole, Cmd_PlaySound));
	DCmd_Register("stopSound",			WRAP_METHOD(CSTimeConsole, Cmd_StopSound));
	DCmd_Register("drawImage",			WRAP_METHOD(CSTimeConsole, Cmd_DrawImage));
	DCmd_Register("drawSubimage",			WRAP_METHOD(CSTimeConsole, Cmd_DrawSubimage));
	DCmd_Register("changeCase",			WRAP_METHOD(CSTimeConsole, Cmd_ChangeCase));
	DCmd_Register("changeScene",			WRAP_METHOD(CSTimeConsole, Cmd_ChangeScene));
	DCmd_Register("caseVariable",			WRAP_METHOD(CSTimeConsole, Cmd_CaseVariable));
	DCmd_Register("invItem",			WRAP_METHOD(CSTimeConsole, Cmd_InvItem));
}
Ejemplo n.º 16
0
Debugger::Debugger() {
	_frameCountdown = 0;
	_isActive = false;
	_errStr = NULL;
	_firstTime = true;
#ifndef USE_TEXT_CONSOLE_FOR_DEBUGGER
	_debuggerDialog = new GUI::ConsoleDialog(1.0f, 0.67f);
	_debuggerDialog->setInputCallback(debuggerInputCallback, this);
	_debuggerDialog->setCompletionCallback(debuggerCompletionCallback, this);
#endif

	// Register variables
	DVar_Register("debug_countdown", &_frameCountdown, DVAR_INT, 0);

	// Register commands
	//DCmd_Register("continue",			WRAP_METHOD(Debugger, Cmd_Exit));
	DCmd_Register("exit",				WRAP_METHOD(Debugger, Cmd_Exit));
	DCmd_Register("quit",				WRAP_METHOD(Debugger, Cmd_Exit));

	DCmd_Register("help",				WRAP_METHOD(Debugger, Cmd_Help));
	DCmd_Register("openlog",			WRAP_METHOD(Debugger, Cmd_OpenLog));

	DCmd_Register("debugflag_list",		WRAP_METHOD(Debugger, Cmd_DebugFlagsList));
	DCmd_Register("debugflag_enable",	WRAP_METHOD(Debugger, Cmd_DebugFlagEnable));
	DCmd_Register("debugflag_disable",	WRAP_METHOD(Debugger, Cmd_DebugFlagDisable));
}
Ejemplo n.º 17
0
Console::Console(TeenAgentEngine *engine) : _engine(engine) {
	registerCmd("enable_object",		WRAP_METHOD(Console, enableObject));
	registerCmd("disable_object",		WRAP_METHOD(Console, enableObject));
	registerCmd("set_ons",			WRAP_METHOD(Console, setOns));
	registerCmd("set_music",			WRAP_METHOD(Console, setMusic));
	registerCmd("animation",			WRAP_METHOD(Console, playAnimation));
	registerCmd("actor_animation",	WRAP_METHOD(Console, playActorAnimation));
	registerCmd("call",				WRAP_METHOD(Console, call));
}
Ejemplo n.º 18
0
Debugger::Debugger(SherlockEngine *vm) : GUI::Debugger(), _vm(vm) {
	_showAllLocations = LOC_DISABLED;

	registerCmd("continue",	     WRAP_METHOD(Debugger, cmdExit));
	registerCmd("scene",         WRAP_METHOD(Debugger, cmdScene));
	registerCmd("song",          WRAP_METHOD(Debugger, cmdSong));
	registerCmd("songs",         WRAP_METHOD(Debugger, cmdListSongs));
	registerCmd("listfiles",     WRAP_METHOD(Debugger, cmdListFiles));
	registerCmd("dumpfile",      WRAP_METHOD(Debugger, cmdDumpFile));
	registerCmd("locations",     WRAP_METHOD(Debugger, cmdLocations));
}
Ejemplo n.º 19
0
GobConsole::GobConsole(GobEngine *vm) : GUI::Debugger(), _vm(vm) {
    DCmd_Register("varSize",      WRAP_METHOD(GobConsole, cmd_varSize));
    DCmd_Register("var8",         WRAP_METHOD(GobConsole, cmd_var8));
    DCmd_Register("var16",        WRAP_METHOD(GobConsole, cmd_var16));
    DCmd_Register("var32",        WRAP_METHOD(GobConsole, cmd_var32));
    DCmd_Register("varString",    WRAP_METHOD(GobConsole, cmd_varString));
    DCmd_Register("listArchives", WRAP_METHOD(GobConsole, cmd_listArchives));
}
Ejemplo n.º 20
0
HugoConsole::HugoConsole(HugoEngine *vm) : GUI::Debugger(), _vm(vm) {
	DCmd_Register("listscreens",   WRAP_METHOD(HugoConsole, Cmd_listScreens));
	DCmd_Register("listobjects",   WRAP_METHOD(HugoConsole, Cmd_listObjects));
	DCmd_Register("getobject",     WRAP_METHOD(HugoConsole, Cmd_getObject));
	DCmd_Register("getallobjects", WRAP_METHOD(HugoConsole, Cmd_getAllObjects));
	DCmd_Register("gotoscreen",    WRAP_METHOD(HugoConsole, Cmd_gotoScreen));
	DCmd_Register("Boundaries",    WRAP_METHOD(HugoConsole, Cmd_boundaries));
}
Ejemplo n.º 21
0
Debugger_v2::Debugger_v2(KyraEngine_v2 *vm) : Debugger(vm), _vm(vm) {
    DCmd_Register("character_info",		WRAP_METHOD(Debugger_v2, cmd_characterInfo));
    DCmd_Register("enter",				WRAP_METHOD(Debugger_v2, cmd_enterScene));
    DCmd_Register("scenes",				WRAP_METHOD(Debugger_v2, cmd_listScenes));
    DCmd_Register("scene_info",			WRAP_METHOD(Debugger_v2, cmd_sceneInfo));
    DCmd_Register("scene_to_facing",	WRAP_METHOD(Debugger_v2, cmd_sceneToFacing));
    DCmd_Register("give",				WRAP_METHOD(Debugger_v2, cmd_giveItem));
}
Ejemplo n.º 22
0
void Debugger_v2::initialize() {
	DCmd_Register("character_info",     WRAP_METHOD(Debugger_v2, cmd_characterInfo));
	DCmd_Register("enter",              WRAP_METHOD(Debugger_v2, cmd_enterScene));
	DCmd_Register("scenes",             WRAP_METHOD(Debugger_v2, cmd_listScenes));
	DCmd_Register("scene_info",         WRAP_METHOD(Debugger_v2, cmd_sceneInfo));
	DCmd_Register("scene_to_facing",    WRAP_METHOD(Debugger_v2, cmd_sceneToFacing));
	DCmd_Register("give",               WRAP_METHOD(Debugger_v2, cmd_giveItem));
	Debugger::initialize();
}
Ejemplo n.º 23
0
void Debugger_v2::initialize() {
	registerCmd("character_info",     WRAP_METHOD(Debugger_v2, cmdCharacterInfo));
	registerCmd("enter",              WRAP_METHOD(Debugger_v2, cmdEnterScene));
	registerCmd("scenes",             WRAP_METHOD(Debugger_v2, cmdListScenes));
	registerCmd("scene_info",         WRAP_METHOD(Debugger_v2, cmdSceneInfo));
	registerCmd("scene_to_facing",    WRAP_METHOD(Debugger_v2, cmdSceneToFacing));
	registerCmd("give",               WRAP_METHOD(Debugger_v2, cmdGiveItem));
	Debugger::initialize();
}
Ejemplo n.º 24
0
Debugger::Debugger(HopkinsEngine *vm) : GUI::Debugger() {
	_vm = vm;
	DCmd_Register("continue", WRAP_METHOD(Debugger, Cmd_Exit));
	DCmd_Register("rects", WRAP_METHOD(Debugger, cmd_DirtyRects));
	DCmd_Register("teleport", WRAP_METHOD(Debugger, cmd_Teleport));
	DCmd_Register("show_room", WRAP_METHOD(Debugger, cmd_ShowCurrentRoom));
	DCmd_Register("zones", WRAP_METHOD(Debugger, cmd_Zones));
	DCmd_Register("lines", WRAP_METHOD(Debugger, cmd_Lines));
}
Ejemplo n.º 25
0
LivingBooksConsole::LivingBooksConsole(MohawkEngine_LivingBooks *vm) : GUI::Debugger(), _vm(vm) {
	DCmd_Register("playSound",			WRAP_METHOD(LivingBooksConsole, Cmd_PlaySound));
	DCmd_Register("stopSound",			WRAP_METHOD(LivingBooksConsole, Cmd_StopSound));
	DCmd_Register("drawImage",			WRAP_METHOD(LivingBooksConsole, Cmd_DrawImage));
	DCmd_Register("changePage",			WRAP_METHOD(LivingBooksConsole, Cmd_ChangePage));
}
Ejemplo n.º 26
0
MystConsole::MystConsole(MohawkEngine_Myst *vm) : GUI::Debugger(), _vm(vm) {
	DCmd_Register("changeCard",			WRAP_METHOD(MystConsole, Cmd_ChangeCard));
	DCmd_Register("curCard",			WRAP_METHOD(MystConsole, Cmd_CurCard));
	DCmd_Register("var",				WRAP_METHOD(MystConsole, Cmd_Var));
	DCmd_Register("curStack",			WRAP_METHOD(MystConsole, Cmd_CurStack));
	DCmd_Register("changeStack",		WRAP_METHOD(MystConsole, Cmd_ChangeStack));
	DCmd_Register("drawImage",			WRAP_METHOD(MystConsole, Cmd_DrawImage));
	DCmd_Register("drawRect",			WRAP_METHOD(MystConsole, Cmd_DrawRect));
	DCmd_Register("setResourceEnable",	WRAP_METHOD(MystConsole, Cmd_SetResourceEnable));
	DCmd_Register("playSound",			WRAP_METHOD(MystConsole, Cmd_PlaySound));
	DCmd_Register("stopSound",			WRAP_METHOD(MystConsole, Cmd_StopSound));
	DCmd_Register("playMovie",			WRAP_METHOD(MystConsole, Cmd_PlayMovie));
	DCmd_Register("disableInitOpcodes",	WRAP_METHOD(MystConsole, Cmd_DisableInitOpcodes));
	DCmd_Register("cache",				WRAP_METHOD(MystConsole, Cmd_Cache));
	DCmd_Register("resources",			WRAP_METHOD(MystConsole, Cmd_Resources));
}
Ejemplo n.º 27
0
RivenConsole::RivenConsole(MohawkEngine_Riven *vm) : GUI::Debugger(), _vm(vm) {
	DCmd_Register("changeCard",		WRAP_METHOD(RivenConsole, Cmd_ChangeCard));
	DCmd_Register("curCard",		WRAP_METHOD(RivenConsole, Cmd_CurCard));
	DCmd_Register("var",			WRAP_METHOD(RivenConsole, Cmd_Var));
	DCmd_Register("playSound",		WRAP_METHOD(RivenConsole, Cmd_PlaySound));
	DCmd_Register("playSLST",       WRAP_METHOD(RivenConsole, Cmd_PlaySLST));
	DCmd_Register("stopSound",		WRAP_METHOD(RivenConsole, Cmd_StopSound));
	DCmd_Register("curStack",		WRAP_METHOD(RivenConsole, Cmd_CurStack));
	DCmd_Register("changeStack",	WRAP_METHOD(RivenConsole, Cmd_ChangeStack));
	DCmd_Register("hotspots",		WRAP_METHOD(RivenConsole, Cmd_Hotspots));
	DCmd_Register("zipMode",		WRAP_METHOD(RivenConsole, Cmd_ZipMode));
	DCmd_Register("dumpScript",     WRAP_METHOD(RivenConsole, Cmd_DumpScript));
	DCmd_Register("listZipCards",   WRAP_METHOD(RivenConsole, Cmd_ListZipCards));
	DCmd_Register("getRMAP",		WRAP_METHOD(RivenConsole, Cmd_GetRMAP));
	DCmd_Register("combos",         WRAP_METHOD(RivenConsole, Cmd_Combos));
	DCmd_Register("sliderState",    WRAP_METHOD(RivenConsole, Cmd_SliderState));
}
Ejemplo n.º 28
0
Debugger::Debugger(Sword2Engine *vm)
	: GUI::Debugger() {
	_vm = vm;

	memset(_debugTextBlocks, 0, sizeof(_debugTextBlocks));
	memset(_showVar, 0, sizeof(_showVar));

	_displayDebugText = false;	// "INFO"
	_displayWalkGrid = false;	// "WALKGRID"
	_displayMouseMarker = false;	// "MOUSE"
	_displayTime = false;		// "TIME"
	_displayPlayerMarker = false;	// "PLAYER"
	_displayTextNumbers = false;	// "TEXT"

	_definingRectangles = false;	// "RECT"
	_draggingRectangle = 0;		// 0 = waiting to start new rect
					// 1 = currently dragging a rectangle

	_rectX1 = _rectY1 = 0;
	_rectX2 = _rectY2 = 0;
	_rectFlicker = false;

	_testingSnR = false;		// "SAVEREST" - for system to kill all
					// object resources (except player) in
					// fnAddHuman()

	_speechScriptWaiting = 0;	// The id of whoever we're waiting for
					// in a speech script. See fnTheyDo(),
					// fnTheyDoWeWait(), fnWeWait(), and
					// fnTimedWait().

	_startTime = 0;			// "TIMEON" & "TIMEOFF" - system start
					// time

	_textNumber = 0;		// Current system text line number

	_graphNoFrames = 0;		// No. of frames in currently displayed
					// anim

	// Register commands

	DCmd_Register("continue", WRAP_METHOD(Debugger, Cmd_Exit));
	DCmd_Register("q",        WRAP_METHOD(Debugger, Cmd_Exit));
	DCmd_Register("mem",      WRAP_METHOD(Debugger, Cmd_Mem));
	DCmd_Register("tony",     WRAP_METHOD(Debugger, Cmd_Tony));
	DCmd_Register("res",      WRAP_METHOD(Debugger, Cmd_Res));
	DCmd_Register("reslist",  WRAP_METHOD(Debugger, Cmd_ResList));
	DCmd_Register("starts",   WRAP_METHOD(Debugger, Cmd_Starts));
	DCmd_Register("start",    WRAP_METHOD(Debugger, Cmd_Start));
	DCmd_Register("s",        WRAP_METHOD(Debugger, Cmd_Start));
	DCmd_Register("info",     WRAP_METHOD(Debugger, Cmd_Info));
	DCmd_Register("walkgrid", WRAP_METHOD(Debugger, Cmd_WalkGrid));
	DCmd_Register("mouse",    WRAP_METHOD(Debugger, Cmd_Mouse));
	DCmd_Register("player",   WRAP_METHOD(Debugger, Cmd_Player));
	DCmd_Register("reslook",  WRAP_METHOD(Debugger, Cmd_ResLook));
	DCmd_Register("cur",      WRAP_METHOD(Debugger, Cmd_CurrentInfo));
	DCmd_Register("runlist",  WRAP_METHOD(Debugger, Cmd_RunList));
	DCmd_Register("kill",     WRAP_METHOD(Debugger, Cmd_Kill));
	DCmd_Register("nuke",     WRAP_METHOD(Debugger, Cmd_Nuke));
	DCmd_Register("var",      WRAP_METHOD(Debugger, Cmd_Var));
	DCmd_Register("rect",     WRAP_METHOD(Debugger, Cmd_Rect));
	DCmd_Register("clear",    WRAP_METHOD(Debugger, Cmd_Clear));
	DCmd_Register("debugon",  WRAP_METHOD(Debugger, Cmd_DebugOn));
	DCmd_Register("debugoff", WRAP_METHOD(Debugger, Cmd_DebugOff));
	DCmd_Register("saverest", WRAP_METHOD(Debugger, Cmd_SaveRest));
	DCmd_Register("timeon",   WRAP_METHOD(Debugger, Cmd_TimeOn));
	DCmd_Register("timeoff",  WRAP_METHOD(Debugger, Cmd_TimeOff));
	DCmd_Register("text",     WRAP_METHOD(Debugger, Cmd_Text));
	DCmd_Register("showvar",  WRAP_METHOD(Debugger, Cmd_ShowVar));
	DCmd_Register("hidevar",  WRAP_METHOD(Debugger, Cmd_HideVar));
	DCmd_Register("version",  WRAP_METHOD(Debugger, Cmd_Version));
	DCmd_Register("animtest", WRAP_METHOD(Debugger, Cmd_AnimTest));
	DCmd_Register("texttest", WRAP_METHOD(Debugger, Cmd_TextTest));
	DCmd_Register("linetest", WRAP_METHOD(Debugger, Cmd_LineTest));
	DCmd_Register("events",   WRAP_METHOD(Debugger, Cmd_Events));
	DCmd_Register("sfx",      WRAP_METHOD(Debugger, Cmd_Sfx));
	DCmd_Register("english",  WRAP_METHOD(Debugger, Cmd_English));
	DCmd_Register("finnish",  WRAP_METHOD(Debugger, Cmd_Finnish));
	DCmd_Register("polish",   WRAP_METHOD(Debugger, Cmd_Polish));
	DCmd_Register("fxq",      WRAP_METHOD(Debugger, Cmd_FxQueue));
}
Ejemplo n.º 29
0
Console::Console(ZVision *engine) : GUI::Debugger(), _engine(engine) {
	registerCmd("loadvideo", WRAP_METHOD(Console, cmdLoadVideo));
	registerCmd("loadsound", WRAP_METHOD(Console, cmdLoadSound));
	registerCmd("raw2wav", WRAP_METHOD(Console, cmdRawToWav));
	registerCmd("setrenderstate", WRAP_METHOD(Console, cmdSetRenderState));
	registerCmd("generaterendertable", WRAP_METHOD(Console, cmdGenerateRenderTable));
	registerCmd("setpanoramafov", WRAP_METHOD(Console, cmdSetPanoramaFoV));
	registerCmd("setpanoramascale", WRAP_METHOD(Console, cmdSetPanoramaScale));
	registerCmd("location", WRAP_METHOD(Console, cmdLocation));
	registerCmd("dumpfile", WRAP_METHOD(Console, cmdDumpFile));
	registerCmd("dumpfiles", WRAP_METHOD(Console, cmdDumpFiles));
	registerCmd("dumpimage", WRAP_METHOD(Console, cmdDumpImage));
	registerCmd("statevalue", WRAP_METHOD(Console, cmdStateValue));
	registerCmd("stateflag", WRAP_METHOD(Console, cmdStateFlag));
}
Ejemplo n.º 30
0
Console::Console(Myst3Engine *vm) : GUI::Debugger(), _vm(vm) {
	DCmd_Register("infos",				WRAP_METHOD(Console, Cmd_Infos));
	DCmd_Register("lookAt",				WRAP_METHOD(Console, Cmd_LookAt));
	DCmd_Register("initScript",			WRAP_METHOD(Console, Cmd_InitScript));
	DCmd_Register("var",				WRAP_METHOD(Console, Cmd_Var));
	DCmd_Register("listNodes",			WRAP_METHOD(Console, Cmd_ListNodes));
	DCmd_Register("run",				WRAP_METHOD(Console, Cmd_Run));
	DCmd_Register("runOp",				WRAP_METHOD(Console, Cmd_RunOp));
	DCmd_Register("go",					WRAP_METHOD(Console, Cmd_Go));
	DCmd_Register("extract",			WRAP_METHOD(Console, Cmd_Extract));
	DCmd_Register("fillInventory",		WRAP_METHOD(Console, Cmd_FillInventory));
	DCmd_Register("dumpArchive",		WRAP_METHOD(Console, Cmd_DumpArchive));
	DCmd_Register("dumpMasks",			WRAP_METHOD(Console, Cmd_DumpMasks));
}