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 TWINE_CONSOLE_H
23 #define TWINE_CONSOLE_H
24 
25 #include "gui/debugger.h"
26 #include "twine/scene/gamestate.h"
27 
28 namespace TwinE {
29 
30 class TwinEEngine;
31 
32 class TwinEConsole : public GUI::Debugger {
33 private:
34  using Super = GUI::Debugger;
35  TwinEEngine *_engine;
36 
37  bool doToggleSceneryView(int argc, const char **argv);
38  bool doPlayVideo(int argc, const char **argv);
39  bool doPlayMidi(int argc, const char **argv);
40  bool doPlayMusic(int argc, const char **argv);
41  bool doPrintGameFlag(int argc, const char **argv);
42  bool doPrintInventoryFlag(int argc, const char **argv);
43  bool doPrintHolomapFlag(int argc, const char **argv);
44  bool doSetHeroPosition(int argc, const char **argv);
45  bool doGiveItem(int argc, const char **argv);
46  bool doSetLife(int argc, const char **argv);
47  bool doGiveAllItems(int argc, const char **argv);
48  bool doChangeScene(int argc, const char **argv);
49  bool doToggleAutoAggressive(int argc, const char **argv);
50  bool doGiveKey(int argc, const char **argv);
51  bool doGiveGas(int argc, const char **argv);
52  bool doGiveKashes(int argc, const char **argv);
53  bool doToggleZoneRendering(int argc, const char **argv);
54  bool doToggleClipRendering(int argc, const char **argv);
55  bool doToggleActorRendering(int argc, const char **argv);
56  bool doToggleTrackRendering(int argc, const char **argv);
57  bool doToggleGodMode(int argc, const char **argv);
58  bool doToggleEnhancements(int argc, const char **argv);
59  bool doToggleFreeCamera(int argc, const char **argv);
60  bool doToggleSceneRendering(int argc, const char **argv);
61  bool doSetTrackObject(int argc, const char **argv);
62  bool doChangeChapter(int argc, const char **argv);
63  bool doSkipSceneActorsBut(int argc, const char **argv);
64  bool doSetGameFlag(int argc, const char **argv);
65  bool doSetInventoryFlag(int argc, const char **argv);
66  bool doSetHolomapFlag(int argc, const char **argv);
67  bool doAddMagicPoints(int argc, const char **argv);
68  bool doDumpFile(int argc, const char **argv);
69  bool doSetHolomapTrajectory(int argc, const char **argv);
70 
71 protected:
72  void preEnter() override;
73  void postEnter() override;
74 
75 public:
76  TwinEConsole(TwinEEngine *engine);
77  ~TwinEConsole() override;
78 
79  bool exec(const char *file) {
80  const char *argv[] = {"", file};
81  return cmdExecFile(2, argv);
82  }
83 };
84 
85 } // End of namespace TwinE
86 
87 #endif // TWINE_CONSOLE_H
Definition: debugger.h:41
void preEnter() override
Definition: twine.h:207
Definition: achievements_tables.h:27
void postEnter() override
Definition: console.h:32