ScummVM API documentation
adv_interface.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 M4_ADV_R_ADV_INTERFACE_H
24#define M4_ADV_R_ADV_INTERFACE_H
25
26#include "m4/m4_types.h"
27
28namespace M4 {
29
30#define INTERFACE_SPRITES 22
31
32class Interface {
33public:
34 bool _shown = false;
35 bool _visible = false;
36 int _x1 = 0, _y1 = 0, _x2 = 0, _y2 = 0;
37
38 int _arrow = 0;
39 int _wait = 0;
40 int _look = 0;
41 int _grab = 0;
42 int _use = 0;
43
44public:
45 virtual ~Interface() {
46 }
47
48 virtual bool init(int arrow, int wait, int look, int grab, int use);
49
50 virtual void cancel_sentence() = 0;
51
52 virtual void freshen_sentence() = 0;
53
54 virtual bool set_interface_palette(RGB8 *myPalette) = 0;
55
56 virtual bool eventHandler(void *bufferPtr, int32 eventType, int32 event, int32 x, int32 y, bool *z) = 0;
57
58 virtual void track_hotspots_refresh() = 0;
59
63 virtual void show();
64
68 void hide();
69
74};
75
76void interface_hide();
77void interface_show();
78
79void track_hotspots_refresh();
80bool intr_EventHandler(void *bufferPtr, int32 eventType, int32 event, int32 x, int32 y, bool *z);
81
82void intr_cancel_sentence();
83void intr_freshen_sentence();
84void intr_freshen_sentence(int cursor);
85
86} // End of namespace M4
87
88#endif
Definition: adv_interface.h:32
virtual void show()
void showWaitCursor()
Definition: database.h:28
Definition: m4_types.h:78