ScummVM API documentation
debugger.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef SCUMM_DEBUGGER_H
23#define SCUMM_DEBUGGER_H
24
25#include "gui/debugger.h"
26
27namespace Scumm {
28
29#define DEBUG_COLOR_COUNT 32
30
31class ScummEngine;
32
34public:
36
37private:
38 ScummEngine *_vm;
39
40 int _nextColorIndex = 0;
41 int _debugColors[DEBUG_COLOR_COUNT];
42
43 void preEnter() override;
44 void postEnter() override;
45 void onFrame() override;
46
47 // Commands
48 bool Cmd_Room(int argc, const char **argv);
49 bool Cmd_LoadGame(int argc, const char **argv);
50 bool Cmd_SaveGame(int argc, const char **argv);
51 bool Cmd_Restart(int argc, const char **argv);
52
53 bool Cmd_PrintActor(int argc, const char **argv);
54 bool Cmd_PrintBox(int argc, const char **argv);
55 bool Cmd_PrintBoxMatrix(int argc, const char **argv);
56 bool Cmd_PrintObjects(int argc, const char **argv);
57 bool Cmd_Actor(int argc, const char **argv);
58 bool Cmd_Camera(int argc, const char **argv);
59 bool Cmd_Object(int argc, const char **argv);
60 bool Cmd_Script(int argc, const char **argv);
61 bool Cmd_PrintScript(int argc, const char **argv);
62 bool Cmd_ImportRes(int argc, const char **argv);
63
64 bool Cmd_PrintDraft(int argc, const char **argv);
65 bool Cmd_PrintGrail(int argc, const char **argv);
66 bool Cmd_Passcode(int argc, const char **argv);
67
68 bool Cmd_Debug(int argc, const char **argv);
69
70 bool Cmd_Show(int argc, const char **argv);
71 bool Cmd_Hide(int argc, const char **argv);
72
73 bool Cmd_Cosdump(int argc, const char **argv);
74 bool Cmd_IMuse(int argc, const char **argv);
75 bool Cmd_DiMuse(int argc, const char **argv);
76
77 bool Cmd_ResetCursors(int argc, const char **argv);
78
79 void printBox(int box);
80 void drawBox(int box, int color);
81 void drawRect(int x, int y, int width, int height, int color);
82 int getNextColor();
83};
84
85} // End of namespace Scumm
86
87#endif
Definition: debugger.h:41
Definition: debugger.h:33
Definition: scumm.h:536
Definition: actor.h:30