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 
28 namespace Alcachofa {
29 
30 enum class DebugMode {
31  None,
32  ClosestFloorPoint,
33  FloorIntersections,
34  TeleportCharacter,
35  FloorAlpha,
36  FloorColor
37 };
38 
39 class Console : public GUI::Debugger {
40 public:
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 
52 private:
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 
65  bool _showGraphics = false;
66  bool _showInteractables = false;
67  bool _showCharacters = false;
68  bool _showFloor = false;
69  bool _showFloorEdges = false;
70  bool _showFloorColor = false;
71 };
72 
73 } // End of namespace Alcachofa
74 
75 #endif // ALCACHOFA_CONSOLE_H
Definition: alcachofa.h:45
Definition: debugger.h:41
Definition: console.h:39