ScummVM API documentation
console.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 AGI_CONSOLE_H
23#define AGI_CONSOLE_H
24
25namespace Agi {
26
27class AgiEngine;
28class PreAgiEngine;
29class MickeyEngine;
30class WinnieEngine;
31
32struct AgiDebug {
33 int enabled;
34 int opcodes;
35 int logic0;
36 int steps;
37 int priority;
38 int statusline;
39 int ignoretriggers;
40};
41
42class Console : public GUI::Debugger {
43public:
44 Console(AgiEngine *vm);
45
46private:
47 bool Cmd_SetVar(int argc, const char **argv);
48 bool Cmd_SetFlag(int argc, const char **argv);
49 bool Cmd_SetObj(int argc, const char **argv);
50 bool Cmd_RunOpcode(int argc, const char **argv);
51 bool Cmd_Agiver(int argc, const char **argv);
52 bool Cmd_Version(int argc, const char **argv);
53 bool Cmd_Flags(int argc, const char **argv);
54 bool Cmd_Vars(int argc, const char **argv);
55 bool Cmd_Objs(int argc, const char **argv);
56 bool Cmd_Opcode(int argc, const char **argv);
57 bool Cmd_Logic0(int argc, const char **argv);
58 bool Cmd_Trigger(int argc, const char **argv);
59 bool Cmd_Step(int argc, const char **argv);
60 bool Cmd_Debug(int argc, const char **argv);
61 bool Cmd_Cont(int argc, const char **argv);
62 bool Cmd_Room(int argc, const char **argv);
63 bool Cmd_BT(int argc, const char **argv);
64 bool Cmd_ShowMap(int argc, const char **argv);
65 bool Cmd_ScreenObj(int argc, const char **argv);
66 bool Cmd_VmVars(int argc, const char **argv);
67 bool Cmd_VmFlags(int argc, const char **argv);
68 bool Cmd_DisableAutomaticSave(int argc, const char **argv);
69 bool Cmd_DiskDump(int argc, const char **argv);
70
71 bool parseInteger(const char *argument, int &result);
72
73private:
74 AgiEngine *_vm;
75};
76
78public:
80 ~MickeyConsole() override {}
81
82private:
83 MickeyEngine *_mickey;
84
85 bool Cmd_Room(int argc, const char **argv);
86 bool Cmd_DrawPic(int argc, const char **argv);
87 bool Cmd_DrawObj(int argc, const char **argv);
88};
89
91public:
93 ~WinnieConsole() override {}
94
95private:
96 WinnieEngine *_winnie;
97
98 bool Cmd_CurRoom(int argc, const char **argv);
99};
100
101} // End of namespace Agi
102
103#endif /* AGI_CONSOLE_H */
Definition: agi.h:699
Definition: console.h:42
Definition: console.h:77
Definition: mickey.h:682
Definition: console.h:90
Definition: winnie.h:298
Definition: debugger.h:41
Definition: agi.h:64
Definition: console.h:32