ScummVM API documentation
console.h
1
2/* ScummVM - Graphic Adventure Engine
3 *
4 * ScummVM is the legal property of its developers, whose names
5 * are too numerous to list here. Please refer to the COPYRIGHT
6 * file distributed with this source distribution.
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#ifndef ALCACHOFA_CONSOLE_H
24#define ALCACHOFA_CONSOLE_H
25
26#include "gui/debugger.h"
27
28namespace Alcachofa {
29
30enum class DebugMode {
31 None,
32 ClosestFloorPoint,
33 FloorIntersections,
34 TeleportCharacter,
35 FloorAlpha,
36 FloorColor
37};
38
39class Console : public GUI::Debugger {
40public:
41 Console();
42 ~Console() override;
43
44 inline bool showGraphics() const { return _showGraphics; }
45 inline bool showInteractables() const { return _showInteractables; }
46 inline bool showCharacters() const { return _showCharacters; }
47 inline bool showFloor() const { return _showFloor; }
48 inline bool showFloorEdges() const { return _showFloorEdges; }
49 inline bool showFloorColor() const { return _showFloorColor; }
50 bool isAnyDebugDrawingOn() const;
51
52private:
53 bool cmdVar(int argc, const char **args);
54 bool cmdProcesses(int argc, const char **args);
55 bool cmdRoom(int argc, const char **args);
56 bool cmdRooms(int argc, const char **args);
57 bool cmdChangeRoom(int argc, const char **args);
58 bool cmdDisableDebugDraw(int argc, const char **args);
59 bool cmdItem(int argc, const char **args);
60 bool cmdDebugMode(int argc, const char **args);
61 bool cmdTeleport(int argc, const char **args);
62 bool cmdToggleRoomFloor(int argc, const char **args);
63 bool cmdPlayVideo(int argc, const char **args);
64 bool cmdScript(int argc, const char **args);
65 bool cmdToggleObject(int argc, const char **args);
66 bool cmdPlaySound(int argc, const char **args);
67 bool cmdDumpFile(int argc, const char **args);
68 bool cmdProcedureAt(int argc, const char **args);
69
70 bool _showGraphics = false;
71 bool _showInteractables = false;
72 bool _showCharacters = false;
73 bool _showFloor = false;
74 bool _showFloorEdges = false;
75 bool _showFloorColor = false;
76};
77
78} // End of namespace Alcachofa
79
80#endif // ALCACHOFA_CONSOLE_H
Definition: console.h:39
Definition: debugger.h:41