ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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  bool Cmd_DiskDump(int argc, const char **argv);
70 
71  bool parseInteger(const char *argument, int &result);
72 
73 private:
74  AgiEngine *_vm;
75 };
76 
77 class MickeyConsole : public GUI::Debugger {
78 public:
79  MickeyConsole(MickeyEngine *mickey);
80  ~MickeyConsole() override {}
81 
82 private:
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 
90 class WinnieConsole : public GUI::Debugger {
91 public:
92  WinnieConsole(WinnieEngine *winnie);
93  ~WinnieConsole() override {}
94 
95 private:
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: mickey.h:682
Definition: debugger.h:41
Definition: console.h:90
Definition: console.h:77
Definition: console.h:32
Definition: agi.h:699
Definition: console.h:42
Definition: agi.h:63
Definition: winnie.h:298