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 ADL_CONSOLE_H
23 #define ADL_CONSOLE_H
24 
25 #include "gui/debugger.h"
26 
27 #include "common/hashmap.h"
28 #include "common/path.h"
29 
30 namespace Common {
31 class String;
32 }
33 
34 namespace Adl {
35 
36 class AdlEngine;
37 struct Item;
38 
39 class Console : public GUI::Debugger {
40 public:
41  Console(AdlEngine *engine);
42 
43  static Common::String toAscii(const Common::String &str);
44  Common::String toNative(const Common::String &str);
45 
46 private:
47  bool Cmd_Nouns(int argc, const char **argv);
48  bool Cmd_Verbs(int argc, const char **argv);
49  bool Cmd_DumpScripts(int argc, const char **argv);
50  bool Cmd_ValidCommands(int argc, const char **argv);
51  bool Cmd_Region(int argc, const char **argv);
52  bool Cmd_Room(int argc, const char **argv);
53  bool Cmd_Items(int argc, const char **argv);
54  bool Cmd_GiveItem(int argc, const char **argv);
55  bool Cmd_Vars(int argc, const char **argv);
56  bool Cmd_Var(int argc, const char **argv);
57  bool Cmd_ConvertDisk(int argc, const char **argv);
58  bool Cmd_RunScript(int argc, const char **argv);
59  bool Cmd_StopScript(int argc, const char **argv);
60  bool Cmd_SetScriptDelay(int argc, const char **argv);
61 
62  void printItem(const Item &item);
63  void printWordMap(const Common::HashMap<Common::String, uint> &wordMap);
64  void dumpScripts(const Common::Path &prefix = Common::Path());
65  void prepareGame();
66 
67  AdlEngine *_engine;
68 };
69 
70 } // End of namespace Adl
71 
72 #endif
Definition: console.h:39
Definition: str.h:59
Definition: debugger.h:41
Definition: path.h:52
Definition: adl.h:55
Definition: adl.h:252
Definition: algorithm.h:29
Definition: adl.h:169