ScummVM API documentation
global.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 MADS_FOREST_GLOBAL_H
23 #define MADS_FOREST_GLOBAL_H
24 
25 #include "common/serializer.h"
26 #include "mads/madsv2/core/vocabh.h"
27 #include "mads/madsv2/forest/extra.h"
28 
29 namespace MADS {
30 namespace MADSV2 {
31 namespace Forest {
32 
33 enum {
34  walker_timing = 0, /* Stop walker timing (long) */
35  walker_timing_2 = 1,
36  inventory_is_displayed = 2, /* T if inventory is being displayed */
37  player_hyperwalked = 3,
38  player_selected_object = 4,
39  walker_converse_state = 5,
40  walker_converse_now = 6,
41  g007 = 7,
42  g008 = 8,
43  g009 = 9,
44  play_background_sounds = 10, /* Play environmental sounds */
45  player_score_flags = 11, /* 16 flags for checking if player increased score */
46  dont_load_walker = 12, /* if T, will not load walker in section code */
47  perform_displacements = 13, /* if T, will do displacements */
48  intro = 14, /* if T, Intro is in progress */
49  outro = 15, /* if T, Outro is in progress */
50  g016 = 16,
51  g017 = 17,
52  g018 = 18,
53  g019 = 19,
54  g020 = 20,
55  tunnel_exit_1_opened = 21,
56  g022 = 22,
57  g023 = 23,
58  g024 = 24,
59  g025 = 25,
60  g026 = 26,
61  g027 = 27,
62  g028 = 28,
63  g029 = 29,
64  g030 = 30,
65  g031 = 31,
66  g032 = 32,
67  g033 = 33,
68  g034 = 34,
69  g035 = 35,
70  g036 = 36,
71  g037 = 37,
72  g038 = 38,
73  g039 = 39,
74  tunnel_exit_2_opened = 40,
75  tunnel_1_room = 41,
76  tunnel_2_room = 42,
77  tunnel_3_room = 43,
78  tunnel_4_room = 44,
79  tunnel_5_room = 45,
80  g046 = 46,
81  g047 = 47,
82  g048 = 48,
83  g049 = 49,
84  g050 = 50,
85  g051 = 51,
86  g052 = 52,
87  g053 = 53,
88  g054 = 54,
89  g055 = 55,
90  g056 = 56,
91  g057 = 57,
92  g058 = 58,
93  g059 = 59,
94  tunnel_exit_4_opened = 60,
95  tunnel_exit_5_opened = 61,
96  g062 = 62,
97  tunnel_exit_3_opened = 63,
98  g064 = 64,
99  g065 = 65,
100  phineas_status = 66,
101  g067 = 67,
102  g068 = 68,
103  g069 = 69,
104  g070 = 70,
105  g071 = 71,
106  g072 = 72,
107  g073 = 73,
108  g074 = 74,
109  g075 = 75,
110  g076 = 76,
111  g077 = 77,
112  g078 = 78,
113  g079 = 79,
114  g080 = 80,
115  g081 = 81,
116  g082 = 82,
117  g083 = 83,
118  g084 = 84,
119  g085 = 85,
120  g086 = 86,
121  g087 = 87,
122  g088 = 88,
123  g089 = 89,
124  g090 = 90,
125  g091 = 91,
126  g092 = 92,
127  g093 = 93,
128  g094 = 94,
129  g095 = 95,
130  g096 = 96,
131  g097 = 97,
132  g098 = 98,
133  g099 = 99,
134  g100 = 100,
135  g101 = 101,
136  g102 = 102,
137  g103 = 103,
138  g104 = 104,
139  g105 = 105,
140  g106 = 106,
141  g107 = 107,
142  g108 = 108,
143  g109 = 109,
144  g110 = 110,
145  g111 = 111,
146  g112 = 112,
147  g113 = 113,
148  g114 = 114,
149  g115 = 115,
150  g116 = 116,
151  g117 = 117,
152  g118 = 118,
153  g119 = 119,
154  g120 = 120,
155  g121 = 121,
156  g122 = 122,
157  g123 = 123,
158  g124 = 124,
159  g125 = 125,
160  g126 = 126,
161  g127 = 127,
162  g128 = 128,
163  g129 = 129,
164  g130 = 130,
165  g131 = 131,
166  g132 = 132,
167  g133 = 133,
168  g134 = 134,
169  g135 = 135,
170  g136 = 136,
171  g137 = 137,
172  g138 = 138,
173  g139 = 139,
174  g140 = 140,
175  g141 = 141,
176  g142 = 142,
177  g143 = 143,
178  g144 = 144,
179  g145 = 145,
180  g146 = 146,
181  g147 = 147,
182  g148 = 148,
183  g149 = 149,
184  g150 = 150,
185  g151 = 151,
186  g152 = 152,
187  g153 = 153,
188  g154 = 154,
189  g155 = 155,
190  g156 = 156,
191  g157 = 157,
192  g158 = 158,
193  g159 = 159,
194  g160 = 160,
195  g161 = 161,
196  g162 = 162,
197  g163 = 163,
198  g164 = 164,
199  g165 = 165,
200  g166 = 166,
201  g167 = 167,
202  g168 = 168,
203  g169 = 169,
204  g170 = 170,
205  g171 = 171,
206  g172 = 172,
207  g173 = 173,
208  g174 = 174,
209  g175 = 175,
210  g176 = 176,
211  g177 = 177,
212  g178 = 178,
213  g179 = 179,
214  g180 = 180,
215  g181 = 181,
216  g182 = 182,
217  g183 = 183,
218  g184 = 184,
219  g185 = 185,
220  g186 = 186,
221  g187 = 187,
222  g188 = 188,
223  g189 = 189,
224  g190 = 190,
225  g191 = 191,
226  g192 = 192,
227  g193 = 193,
228  g194 = 194,
229  g195 = 195,
230  g196 = 196,
231  g197 = 197,
232  g198 = 198,
233  g199 = 199,
234  g200 = 200,
235  g201 = 201,
236  g202 = 202,
237  g203 = 203,
238  g204 = 204,
239  g205 = 205,
240  g206 = 206,
241  g207 = 207,
242  g208 = 208,
243  g209 = 209,
244  g210 = 210
245 };
246 
247 // phineas_status
248 #define PHIN_IS_IN_CONTROL_AGAIN 2
249 
251  int16 _active;
252  int16 _frame;
253  int16 _val3;
254  int16 _val4;
255 
256  void synchronize(Common::Serializer &s) {
257  s.syncMultipleLE(_active, _frame, _val3, _val4);
258  }
259 };
260 
261 extern int16 flags[40];
262 extern bool lets_get_a_move_on_anim;
263 extern bool inv_enable_command;
264 
265 extern void global_init();
266 extern void global_section_constructor();
267 extern void sync_room(Common::Serializer &s);
268 extern void global_section_walker();
269 extern void global_section_interface();
270 
271 extern void global_room_init();
272 extern void global_error_code();
273 extern void global_anim1(int arg_0, int arg_2, int arg_4, int16 *arg_6);
274 extern void global_anim2(int arg_0, int arg_2, int arg_4, int16 *arg_6);
275 extern void global_anim3(int handle, int16 *frame);
276 extern void global_midi_play(int num);
277 extern void global_daemon_code();
278 extern void global_game_main_loop();
279 
280 } // namespace Forest
281 } // namespace MADSV2
282 } // namespace MADS
283 
284 #endif
void syncMultipleLE(T &...values)
Definition: serializer.h:333
Definition: serializer.h:80
Definition: global.h:250
Definition: mps_installer.h:31