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 
25 namespace Agi {
26 
27 class AgiEngine;
28 class PreAgiEngine;
29 class MickeyEngine;
30 class WinnieEngine;
31 
32 struct AgiDebug {
33  int enabled;
34  int opcodes;
35  int logic0;
36  int steps;
37  int priority;
38  int statusline;
39  int ignoretriggers;
40 };
41 
42 class Console : public GUI::Debugger {
43 public:
44  Console(AgiEngine *vm);
45 
46 private:
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 
70  bool parseInteger(const char *argument, int &result);
71 
72 private:
73  AgiEngine *_vm;
74 };
75 
76 class MickeyConsole : public GUI::Debugger {
77 public:
78  MickeyConsole(MickeyEngine *mickey);
79  ~MickeyConsole() override {}
80 
81 private:
82  MickeyEngine *_mickey;
83 
84  bool Cmd_Room(int argc, const char **argv);
85  bool Cmd_DrawPic(int argc, const char **argv);
86  bool Cmd_DrawObj(int argc, const char **argv);
87 };
88 
89 class WinnieConsole : public GUI::Debugger {
90 public:
91  WinnieConsole(WinnieEngine *winnie);
92  ~WinnieConsole() override {}
93 
94 private:
95  WinnieEngine *_winnie;
96 
97  bool Cmd_CurRoom(int argc, const char **argv);
98 };
99 
100 } // End of namespace Agi
101 
102 #endif /* AGI_CONSOLE_H */
Definition: mickey.h:681
Definition: debugger.h:41
Definition: console.h:89
Definition: console.h:76
Definition: console.h:32
Definition: agi.h:839
Definition: console.h:42
Definition: agi.h:63
Definition: winnie.h:297