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  * This file is dual-licensed.
22  * In addition to the GPLv3 license mentioned above, this code is also
23  * licensed under LGPL 2.1. See LICENSES/COPYING.LGPL file for the
24  * full text of the license.
25  *
26  */
27 
28 #ifndef GOB_CONSOLE_H
29 #define GOB_CONSOLE_H
30 
31 #include "gui/debugger.h"
32 
33 namespace Gob {
34 
35 class GobEngine;
36 class Cheater;
37 
38 class GobConsole : public GUI::Debugger {
39 public:
40  GobConsole(GobEngine *vm);
41  ~GobConsole(void) override;
42 
43  void registerCheater(Cheater *cheater);
44  void unregisterCheater();
45 
46 private:
47  GobEngine *_vm;
48 
49  Cheater *_cheater;
50 
51  bool cmd_varSize(int argc, const char **argv);
52  bool cmd_dumpVars(int argc, const char **argv);
53  bool cmd_var8(int argc, const char **argv);
54  bool cmd_var16(int argc, const char **argv);
55  bool cmd_var32(int argc, const char **argv);
56  bool cmd_varString(int argc, const char **argv);
57 
58  bool cmd_cheat(int argc, const char **argv);
59 
60  bool cmd_listArchives(int argc, const char **argv);
61 };
62 
63 } // End of namespace Gob
64 
65 #endif
Definition: gob.h:156
Definition: cheater.h:44
Definition: debugger.h:41
Definition: anifile.h:40
Definition: console.h:38