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