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 NANCY_CONSOLE_H
23 #define NANCY_CONSOLE_H
24 
25 #include "gui/debugger.h"
26 
27 namespace Nancy {
28 
29 namespace Action {
30 class ActionRecord;
31 struct DependencyRecord;
32 }
33 
34 class NancyEngine;
35 
36 class NancyConsole : public GUI::Debugger {
37 public:
38  NancyConsole();
39  virtual ~NancyConsole(void);
40 
41  void postEnter() override;
42 
43 private:
44  bool Cmd_loadCal(int argc, const char **argv);
45  bool Cmd_cifExport(int argc, const char **argv);
46  bool Cmd_ciftreeExport(int argc, const char **argv);
47  bool Cmd_cifList(int argc, const char **argv);
48  bool Cmd_cifInfo(int argc, const char **argv);
49  bool Cmd_chunkExport(int argc, const char **argv);
50  bool Cmd_chunkHexDump(int argc, const char **argv);
51  bool Cmd_chunkList(int argc, const char **argv);
52  bool Cmd_showImage(int argc, const char **argv);
53  bool Cmd_exportImage(int argc, const char **argv);
54  bool Cmd_playVideo(int argc, const char **argv);
55  bool Cmd_playSound(int argc, const char **argv);
56  bool Cmd_loadScene(int argc, const char **argv);
57  bool Cmd_sceneID(int argc, const char **argv);
58  bool Cmd_listActionRecords(int argc, const char **argv);
59  bool Cmd_scanForActionRecordType(int argc, const char **argv);
60  bool Cmd_getEventFlags(int argc, const char **argv);
61  bool Cmd_setEventFlags(int argc, const char **argv);
62  bool Cmd_getInventory(int argc, const char **argv);
63  bool Cmd_setInventory(int argc, const char **argv);
64  bool Cmd_getPlayerTime(int argc, const char **argv);
65  bool Cmd_setPlayerTime(int argc, const char **argv);
66  bool Cmd_getDifficulty(int argc, const char **argv);
67  bool Cmd_setDifficulty(int argc, const char **argv);
68  bool Cmd_soundInfo(int argc, const char **argv);
69  bool Cmd_showHotspots(int argc, const char **argv);
70 
71  void printActionRecord(const Nancy::Action::ActionRecord *record, bool noDependencies = false);
72  void recursePrintDependencies(const Nancy::Action::DependencyRecord &record);
73 
74  Common::Path _videoFile;
75  Common::Path _imageFile;
76  Common::Path _paletteFile;
77 };
78 
79 } // End of namespace Nancy
80 
81 #endif // NANCY_CONSOLE_H
Definition: actionrecord.h:69
Definition: debugger.h:41
Definition: path.h:52
Definition: actionrecord.h:97
Definition: console.h:36
Definition: actionmanager.h:32