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
29namespace Ultima {
30namespace Nuvie {
31
32class Console : public GUI_Console {
33
34protected:
35 GUI *gui;
36 Screen *screen;
37 const Configuration *config;
38
39 bool displayConsole;
40
41public:
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 Common::String &line) override;
46};
47
48void ConsoleInit(const Configuration *c, Screen *s, GUI *gui, uint16 w, uint16 h);
49void ConsoleDelete();
50void ConsoleAddInfo(const char *s, ...);
51void ConsoleAddError(const Common::String &s);
52void ConsoleAddWarning(const Common::String &s);
53void ConsolePause();
54void ConsoleShow();
55void ConsoleHide();
56
57} // End of namespace Nuvie
58} // End of namespace Ultima
59
60#endif
Definition: str.h:59
Definition: configuration.h:60
Definition: console.h:32
Definition: gui_console.h:35
Definition: gui.h:42
Definition: screen.h:41