ScummVM API documentation
vars.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 M4_RIDDLE_VARS_H
23
#define M4_RIDDLE_VARS_H
24
25
#include "common/textconsole.h"
26
#include "m4/riddle/flags.h"
27
#include "m4/riddle/hotkeys.h"
28
#include "m4/riddle/walker.h"
29
#include "m4/riddle/gui/interface.h"
30
#include "m4/vars.h"
31
32
namespace
M4
{
33
namespace
Riddle {
34
35
#define LETTERBOX_Y 30
36
37
enum
global_triggers {
38
kINVENTORY_CLOSEUP_END = 990,
39
kCALLED_EACH_LOOP = 32764,
40
kGOTO_MAIN_MENU = 32766
41
};
42
43
class
Vars
:
public
M4::Vars
{
44
private
:
45
static
void
spanish_ascii_converter_proc(
char
*
string
);
46
47
protected
:
48
void
main_cold_data_init()
override
;
49
50
public
:
51
Riddle::Flags
_flags;
52
Riddle::Walker
_walker;
53
Riddle::Hotkeys
_hotkeys;
54
Riddle::GUI::Interface
_interface;
55
bool
_menuSystemInitialized =
false
;
56
int
_global301 = 0;
57
bool
_room303_btnFlag =
false
;
58
int
_flag1 = 0;
59
int
_204_dword1A1898 = 0;
60
bool
_kittyScreaming =
false
;
61
bool
_spleenSpraying =
false
;
62
Common::String
_string1;
63
Common::String
_string2;
64
Common::String
_string3;
65
int
_ripSketching = 0;
66
TextScrn
*_messageScreen =
nullptr
;
67
int32 _messageLogTrigger = 0;
68
int32 _messageLogResult = 0;
69
70
public
:
71
Vars
();
72
virtual
~Vars
();
73
74
M4::Interface
*getInterface()
override
{
75
return
&_interface;
76
}
77
Hotkeys
*getHotkeys()
override
{
78
return
&_hotkeys;
79
}
80
M4::Walker
*getWalker()
override
{
81
return
&_walker;
82
}
83
void
initialize_game()
override
;
84
85
void
global_menu_system_init()
override
;
86
};
87
88
extern
Vars
*g_vars;
89
90
#undef _G
91
#undef _GI
92
#define _G(X) (::M4::Riddle::g_vars->_##X)
93
#define _GI(X) _G(interface)._##X
94
#define _GINT() _G(interface)
95
96
}
// namespace Riddle
97
}
// namespace M4
98
99
#endif
Common::String
Definition:
str.h:59
M4::Interface
Definition:
adv_interface.h:32
M4::Riddle::Flags
Definition:
flags.h:554
M4::Riddle::Vars
Definition:
vars.h:43
M4::Riddle::Walker
Definition:
walker.h:45
M4::Vars
Definition:
vars.h:68
M4::Walker
Definition:
adv_walk.h:31
M4
Definition:
database.h:28
M4::Riddle::GUI::Interface
Definition:
interface.h:38
M4::Riddle::Hotkeys
Definition:
hotkeys.h:31
M4::TextScrn
Definition:
gui_dialog.h:62
engines
m4
riddle
vars.h
Generated on Sun Nov 22 2026 09:28:00 for ScummVM API documentation by
1.9.4