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 NUVIE_CORE_CONSOLE_H
23 #define NUVIE_CORE_CONSOLE_H
24 
25 #include "ultima/nuvie/gui/gui_console.h"
26 #include "ultima/nuvie/screen/screen.h"
27 #include "ultima/nuvie/conf/configuration.h"
28 
29 namespace Ultima {
30 namespace Nuvie {
31 
32 class Console : public GUI_Console {
33 
34 protected:
35  GUI *gui;
36  Screen *screen;
37  const Configuration *config;
38 
39  bool displayConsole;
40 
41 public:
42  Console(const Configuration *c, Screen *s, GUI *g, uint16 x, uint16 y, uint16 w, uint16 h);
43  ~Console() override;
44 
45  void AddLine(const Std::string &line) override;
46 };
47 
48 void ConsoleInit(const Configuration *c, Screen *s, GUI *gui, uint16 w, uint16 h);
49 void ConsoleDelete();
50 void ConsoleAddInfo(const char *s, ...);
51 void ConsoleAddError(const Std::string &s);
52 void ConsoleAddWarning(const Std::string &s);
53 void ConsolePause();
54 void ConsoleShow();
55 void ConsoleHide();
56 
57 } // End of namespace Nuvie
58 } // End of namespace Ultima
59 
60 #endif
Definition: configuration.h:61
Definition: console.h:32
Definition: system.h:46
Definition: gui_console.h:35
Definition: screen.h:41
Definition: detection.h:27
Definition: string.h:30