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 MOHAWK_CONSOLE_H
23 #define MOHAWK_CONSOLE_H
24 
25 #include "gui/debugger.h"
26 
27 namespace Mohawk {
28 
29 class MohawkEngine_LivingBooks;
30 
31 #ifdef ENABLE_MYST
32 
33 class MohawkEngine_Myst;
34 
35 class MystConsole : public GUI::Debugger {
36 public:
37  explicit MystConsole(MohawkEngine_Myst *vm);
38  ~MystConsole() override;
39 
40 private:
41  MohawkEngine_Myst *_vm;
42 
43  bool Cmd_ChangeCard(int argc, const char **argv);
44  bool Cmd_CurCard(int argc, const char **argv);
45  bool Cmd_Var(int argc, const char **argv);
46  bool Cmd_DrawImage(int argc, const char **argv);
47  bool Cmd_DrawRect(int argc, const char **argv);
48  bool Cmd_SetResourceEnable(int argc, const char **argv);
49  bool Cmd_CurStack(int argc, const char **argv);
50  bool Cmd_ChangeStack(int argc, const char **argv);
51  bool Cmd_PlaySound(int argc, const char **argv);
52  bool Cmd_StopSound(int argc, const char **argv);
53  bool Cmd_PlayMovie(int argc, const char **argv);
54  bool Cmd_DisableInitOpcodes(int argc, const char **argv);
55  bool Cmd_Cache(int argc, const char **argv);
56  bool Cmd_Resources(int argc, const char **argv);
57  bool Cmd_QuickTest(int argc, const char **argv);
58 };
59 
60 #endif
61 
62 #ifdef ENABLE_RIVEN
63 
64 class MohawkEngine_Riven;
65 
66 class RivenConsole : public GUI::Debugger {
67 public:
68  explicit RivenConsole(MohawkEngine_Riven *vm);
69  ~RivenConsole() override;
70 
71 private:
72  MohawkEngine_Riven *_vm;
73 
74  bool Cmd_ChangeCard(int argc, const char **argv);
75  bool Cmd_CurCard(int argc, const char **argv);
76  bool Cmd_Var(int argc, const char **argv);
77  bool Cmd_PlaySound(int argc, const char **argv);
78  bool Cmd_PlaySLST(int argc, const char **argv);
79  bool Cmd_StopSound(int argc, const char **argv);
80  bool Cmd_CurStack(int argc, const char **argv);
81  bool Cmd_ChangeStack(int argc, const char **argv);
82  bool Cmd_Hotspots(int argc, const char **argv);
83  bool Cmd_ZipMode(int argc, const char **argv);
84  bool Cmd_DumpCard(int argc, const char **argv);
85  bool Cmd_DumpStack(int argc, const char **argv);
86  bool Cmd_DumpScript(int argc, const char **argv);
87  bool Cmd_ListZipCards(int argc, const char **argv);
88  bool Cmd_GetRMAP(int argc, const char **argv);
89  bool Cmd_Combos(int argc, const char **argv);
90  bool Cmd_SliderState(int argc, const char **argv);
91  bool Cmd_QuickTest(int argc, const char **argv);
92 };
93 
94 #endif
95 
97 public:
99  ~LivingBooksConsole() override;
100 
101 private:
103 
104  bool Cmd_PlaySound(int argc, const char **argv);
105  bool Cmd_StopSound(int argc, const char **argv);
106  bool Cmd_DrawImage(int argc, const char **argv);
107  bool Cmd_ChangePage(int argc, const char **argv);
108  bool Cmd_ChangeCursor(int argc, const char **argv);
109 };
110 
111 #ifdef ENABLE_CSTIME
112 
113 class MohawkEngine_CSTime;
114 
115 class CSTimeConsole : public GUI::Debugger {
116 public:
117  CSTimeConsole(MohawkEngine_CSTime *vm);
118  ~CSTimeConsole(void) override;
119 
120 private:
121  MohawkEngine_CSTime *_vm;
122 
123  bool Cmd_PlaySound(int argc, const char **argv);
124  bool Cmd_StopSound(int argc, const char **argv);
125  bool Cmd_DrawImage(int argc, const char **argv);
126  bool Cmd_DrawSubimage(int argc, const char **argv);
127  bool Cmd_ChangeCase(int argc, const char **argv);
128  bool Cmd_ChangeScene(int argc, const char **argv);
129  bool Cmd_CaseVariable(int argc, const char **argv);
130  bool Cmd_InvItem(int argc, const char **argv);
131 };
132 
133 #endif
134 
135 } // End of namespace Mohawk
136 
137 #endif
Definition: debugger.h:41
Definition: cstime.h:129
Definition: console.h:96
Definition: bitmap.h:32
Definition: livingbooks.h:707