25#include "m4/adv_r/kernel.h"
26#include "m4/core/globals.h"
27#include "m4/core/term.h"
28#include "m4/adv_db_r/db_catalog.h"
29#include "m4/adv_r/adv.h"
30#include "m4/adv_r/adv_been.h"
31#include "m4/adv_r/adv_game.h"
32#include "m4/adv_r/adv_interface.h"
33#include "m4/adv_r/adv_inv.h"
34#include "m4/adv_r/adv_player.h"
35#include "m4/adv_r/adv_rails.h"
36#include "m4/adv_r/adv_scale.h"
37#include "m4/adv_r/adv_trigger.h"
38#include "m4/adv_r/adv_walk.h"
39#include "m4/adv_r/conv_io.h"
40#include "m4/core/mouse.h"
41#include "m4/fileio/fstream.h"
42#include "m4/fileio/sys_file.h"
43#include "m4/graphics/gr_color.h"
44#include "m4/graphics/gr_font.h"
45#include "m4/graphics/krn_pal.h"
46#include "m4/graphics/rend.h"
47#include "m4/gui/gui_dialog.h"
48#include "m4/gui/gui_item.h"
49#include "m4/gui/gui_menu_items.h"
50#include "m4/gui/gui_mouse.h"
51#include "m4/gui/gui_univ.h"
52#include "m4/gui/hotkeys.h"
53#include "m4/mem/memman.h"
54#include "m4/mem/res.h"
55#include "m4/platform/events.h"
56#include "m4/platform/sound/digi.h"
57#include "m4/platform/sound/midi.h"
58#include "m4/wscript/wscript.h"
62#define CACHE_NOT_OVERRIDE_BY_FLAG_PARSE 2
70 void game_systems_initialize(
byte flags);
71 void game_systems_shutdown();
73 bool woodscript_init();
74 void woodscript_shutdown();
76 void create_mouse_watch_dialog();
80 virtual void main_cold_data_init() = 0;
88 virtual Walker *getWalker() = 0;
89 virtual Hotkeys *getHotkeys() = 0;
90 virtual void global_menu_system_init() = 0;
91 virtual void initialize_game() = 0;
101 frac16 _globals[GLB_SHARED_VARS];
119 bool _menuSystemInitialized =
false;
121 const bool _cheating_enabled =
true;
123 Font *_system_font =
nullptr;
124 Font *_font_line =
nullptr;
125 Font *_font_tiny_prop =
nullptr;
126 Font *_font_tiny =
nullptr;
127 Font *_font_inter =
nullptr;
128 Font *_font_conv =
nullptr;
129 Font *_font_menu =
nullptr;
130 Font *_font_misc =
nullptr;
131 Font *_interfaceFont =
nullptr;
132 Font *_font =
nullptr;
134 bool _system_shutting_down =
false;
136 size_t _mem_to_alloc = 0;
137 GrBuff *_screenCodeBuff =
nullptr;
138 GrBuff *_game_bgBuff =
nullptr;
139 GrBuff *_gameDrawBuff =
nullptr;
140 GrBuff *_gameInterfaceBuff =
nullptr;
141 void *_custom_interface_setup =
nullptr;
142 void *_custom_interface_button_handler =
nullptr;
143 int _global_sound_room = 0;
144 CursorChange _toggle_cursor = CURSCHANGE_NONE;
145 bool _i_just_hyperwalked =
false;
146 bool _please_hyperwalk =
false;
147 void (*_custom_ascii_converter)(
char *string) =
nullptr;
148 bool _vmng_Initted =
false;
154 Hotkey *_systemHotkeys =
nullptr;
155 int32 _memtypeSCRN = 0;
156 int32 _memtypeMATTE = 0;
157 int32 _memtypeRECT = 0;
158 int32 _sizeMem[_MEMTYPE_LIMIT];
159 int32 _requests[_MEMTYPE_LIMIT];
160 void *_memBlock[_MEMTYPE_LIMIT];
161 RGB8 _master_palette[256];
162 RGB8 _backup_palette[256];
163 bool _pal_fade_in_progress =
false;
166 InvPal *_inverse_pal =
nullptr;
167 int32 _inv_obj_mem_type = 0;
168 bool _currScreen =
false;
171 Dialog *_mousePosDialog =
nullptr;
172 bool _showMousePos =
false;
173 bool _inv_suppress_click_sound =
false;
174 bool _between_rooms =
false;
175 bool _completeWalk =
false;
176 const char *_art_base_override =
nullptr;
177 bool _use_alternate_attribute_file =
false;
178 bool _camera_reacts_to_player =
false;
179 bool _set_commands_allowed_since_last_checked =
false;
186 uint32 _editors_in_use = 0;
187 bool _editor_showStats =
false;
188 bool _shut_down_digi_tracks_between_rooms =
false;
189 cursor_states _cursor_state = kARROW;
191 bool _hyperwalk =
false;
194#define _G(X) (g_vars->_##X)
195#define _GI() (*g_vars->getInterface())
196#define _GW() (*g_vars->getWalker())
197#define _GWS(X) _G(ws)._##X
198#define INTERFACE_VISIBLE g_vars->getInterface()->_visible
Definition: adv_interface.h:32
Definition: gr_color.h:29
Definition: adv_walk.h:31
Definition: database.h:28
intptr frac16
Definition: m4_types.h:45
Definition: adv_scale.h:32
Definition: db_catalog.h:32
Definition: gui_dialog.h:77
Definition: gui_dialog.h:38
Definition: adv_game.h:30
Definition: sys_file.h:39
Definition: gui_univ.h:37
Definition: gui_item.h:105
Definition: gui_mouse.h:34
Definition: adv_player.h:34
Definition: adv_player.h:94
Definition: m4_types.h:78
Definition: adv_rails.h:32
Definition: adv_been.h:31
Definition: gui_univ.h:46
Definition: adv_trigger.h:34
Definition: ws_machine.h:156