22 #ifndef M4_BURGER_VARS_H 23 #define M4_BURGER_VARS_H 25 #include "common/textconsole.h" 27 #include "m4/burger/core/release_trigger.h" 28 #include "m4/burger/core/stream_break.h" 29 #include "m4/burger/gui/gui.h" 30 #include "m4/burger/gui/gui_gizmo.h" 31 #include "m4/burger/gui/game_menu.h" 32 #include "m4/burger/flags.h" 33 #include "m4/burger/hotkeys.h" 34 #include "m4/burger/inventory.h" 35 #include "m4/burger/series_player.h" 36 #include "m4/burger/walker.h" 42 JUST_OVERVIEW = 0, INTERACTIVE_DEMO = 1, MAGAZINE_DEMO = 2, WHOLE_GAME = 3
45 enum global_triggers {
46 kFIRST_GLOBAL_TRIGGER = 10000,
49 kRESUME_CONVERSATION = 10001,
50 kSERIES_STREAM_BREAK = 10002,
51 kSERIES_PLAY_BREAK_0 = 10003,
52 kSERIES_PLAY_BREAK_1 = 10004,
53 kSERIES_PLAY_BREAK_2 = 10005,
54 kRELEASE_TRIGGER_DIGI_CHECK = 10006,
57 kNPC_SPEECH_STARTED = 10010,
58 kNPC_SPEECH_FINISHED = 10011,
59 kWILBUR_SPEECH_STARTED = 10013,
60 kWILBURS_SPEECH_FINISHED = 10014,
61 kWILBURS_SPEECH_START = 10015,
62 kCHANGE_WILBUR_ANIMATION = 10016,
66 kSET_COMMANDS_ALLOWED = 10020,
73 kBurlEntersTown = 10028,
75 kBurlStopsEating = 10030,
76 kBurlLeavesTown = 10031,
77 kBandEntersTown = 10032,
79 kCALLED_EACH_LOOP = 32764,
86 static void custom_ascii_converter_proc(
char *
string);
89 void main_cold_data_init()
override;
93 static int32 _wilbur_should;
96 GameMode _executing = WHOLE_GAME;
108 bool _menuSystemInitialized =
false;
109 bool _gameMenuFromMain =
false;
110 int _room902Flag = 0;
112 int _flumix_should = 0;
114 machine *_npcSpeech1 =
nullptr;
115 machine *_npcSpeech2 =
nullptr;
116 int _npcTrigger = -1;
117 int _player_facing_x = 0, _player_facing_y = 0;
118 int _player_dest_x = 0, _player_dest_y = 0;
119 int _player_trigger = 0;
128 Hotkeys *getHotkeys()
override {
134 void initialize_game()
override;
136 void global_menu_system_init()
override;
143 #define _G(X) (::M4::Burger::g_vars->_##X) 144 #define _GI(X) _G(interface)._##X 145 #define _GINT() _G(interface)
Definition: ws_machine.h:153
Definition: adv_walk.h:32
Definition: adv_interface.h:32
Definition: database.h:28
Definition: interface.h:36
Definition: series_player.h:65
Definition: gui_gizmo.h:41
Definition: release_trigger.h:31
Definition: stream_break.h:48