ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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_BURGER_INTERFACE_H
24
#define M4_BURGER_INTERFACE_H
25
26
#include "m4/adv_r/adv_interface.h"
27
#include "m4/adv_r/adv_hotspot.h"
28
#include "m4/graphics/graphics.h"
29
#include "m4/graphics/gr_buff.h"
30
#include "m4/burger/gui/inventory.h"
31
32
namespace
M4
{
33
namespace
Burger {
34
namespace
GUI
{
35
36
struct
Interface
:
public
M4::Interface
{
37
private
:
38
void
setup();
39
40
void
trackIcons();
41
ControlStatus trackHotspots(
int
event,
int
x,
int
y);
42
void
dispatch_command();
43
void
handleState(ControlStatus status);
44
45
public
:
46
int
_sprite = 22;
// main_interface_sprite;
47
bool
_shown =
false
;
48
GUI::InterfaceBox
*_interfaceBox =
nullptr
;
49
GUI::Inventory
*_inventory =
nullptr
;
50
GUI::TextField
*_textField =
nullptr
;
51
GUI::ButtonClass
*_btnTake =
nullptr
;
52
GUI::ButtonClass
*_btnManipulate =
nullptr
;
53
GUI::ButtonClass
*_btnHandle =
nullptr
;
54
GUI::ButtonClass
*_btnAbductFail =
nullptr
;
55
GUI::ButtonClass
*_btnMenu =
nullptr
;
56
GUI::ButtonClass
*_btnScrollLeft =
nullptr
;
57
GUI::ButtonClass
*_btnScrollRight =
nullptr
;
58
const
HotSpotRec
*_hotspot =
nullptr
;
59
int
_savedX = 0, _savedY = 0;
60
char
_prepText[40] = { 0 };
61
char
_nounText[40] = { 0 };
62
char
_verbText[40] = { 0 };
63
bool
_iconSelected =
false
;
64
int
_state = 0;
65
66
Interface
();
67
~
Interface
()
override
;
68
69
bool
init(
int
arrow,
int
wait,
int
look,
int
grab,
int
use)
override
;
70
71
void
cancel_sentence()
override
;
72
73
void
freshen_sentence()
override
;
74
75
bool
set_interface_palette(
RGB8
*myPalette)
override
;
76
77
void
track_hotspots_refresh()
override
;
78
79
bool
eventHandler(
void
*bufferPtr, int32 eventType, int32 event, int32 x, int32 y,
bool
*z)
override
;
80
81
void
show
()
override
;
82
83
void
refresh_right_arrow();
84
void
refresh_left_arrow();
85
86
void
l_cb();
87
void
u_cb();
88
void
t_cb();
89
void
a_cb();
90
};
91
92
}
// namespace Interface
93
}
// namespace Burger
94
}
// namespace M4
95
96
#endif
M4::GUI::TextField
Definition:
gui_cheapo.h:63
M4::Interface
Definition:
adv_interface.h:32
M4::GUI::InterfaceBox
Definition:
gui_cheapo.h:136
GUI
Definition:
system.h:46
M4::Burger::GUI::Interface::show
void show() override
M4::Burger::GUI::Inventory
Definition:
inventory.h:50
M4::RGB8
Definition:
m4_types.h:88
M4
Definition:
database.h:28
M4::Burger::GUI::Interface
Definition:
interface.h:36
M4::HotSpotRec
Definition:
adv_hotspot.h:30
M4::GUI::ButtonClass
Definition:
gui_cheapo.h:78
engines
m4
burger
gui
interface.h
Generated on Mon Apr 7 2025 09:15:22 for ScummVM API documentation by
1.8.13