ScummVM API documentation
console.h
1 
2 /* ScummVM - Graphic Adventure Engine
3  *
4  * ScummVM is the legal property of its developers, whose names
5  * are too numerous to list here. Please refer to the COPYRIGHT
6  * file distributed with this source distribution.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef AGS_CONSOLE_H
24 #define AGS_CONSOLE_H
25 
26 #include "gui/debugger.h"
27 #include "ags/shared/debugging/debug_manager.h"
28 #include "ags/shared/debugging/output_handler.h"
29 #include "ags/shared/core/types.h"
30 
31 namespace AGS {
32 
33 class AGSEngine;
34 class LogOutputTarget;
35 
36 class AGSConsole : public GUI::Debugger {
37 public:
38  AGSConsole(AGSEngine *vm);
39  ~AGSConsole() override;
40 
41 private:
42  AGSEngine *_vm;
43  LogOutputTarget *_logOutputTarget;
44  AGS3::AGS::Shared::PDebugOutput _agsDebuggerOutput;
45 
46  bool Cmd_listDebugGroups(int argc, const char **argv);
47  bool Cmd_setDebugGroupLevel(int argc, const char **argv);
48 
49  bool Cmd_SetScriptDump(int argc, const char **argv);
50 
51  bool Cmd_getSpriteInfo(int argc, const char **argv);
52  bool Cmd_dumpSprite(int argc, const char **argv);
53 
54  const char *getVerbosityLevel(AGS3::uint32_t groupID) const;
55  AGS3::uint32_t parseGroup(const char *, bool &) const;
56  AGS3::AGS::Shared::MessageType parseLevel(const char *, bool &) const;
57  void printGroupList();
58  void printLevelList();
59 };
60 
62 public:
64  ~LogOutputTarget() override;
65 
66  void PrintMessage(const AGS3::AGS::Shared::DebugMessage &msg) override;
67 };
68 
69 } // End of namespace AGS
70 
71 #endif
Definition: achievements_tables.h:27
Definition: console.h:61
Definition: debugger.h:41
Definition: ags.h:70
Definition: console.h:36
Definition: output_handler.h:39
Definition: ptr.h:159
Definition: output_handler.h:55