1 /*
2  * Triplane Classic - a side-scrolling dogfighting game.
3  * Copyright (C) 1996,1997,2009  Dodekaedron Software Creations Oy
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  *
18  * tjt@users.sourceforge.net
19  */
20 
21 #define NUMBER_OF_COUNTRIES 4
22 #define NUMBER_OF_MISSIONS 6
23 
24 #define GERMANY   0
25 #define FINLAND   1
26 #define ENGLAND   2
27 #define JAPAN     3
28 
29 #define TRUE      1
30 #define FALSE     0
31 
32 #define GERMAN_1  0
33 #define FINLAND_1 1
34 #define ENGLAND_1 2
35 #define JAPAN_1   3
36 #define GERMAN_2  4
37 #define FINLAND_2 5
38 #define ENGLAND_2 6
39 #define JAPAN_2   7
40 #define GERMAN_3  8
41 #define FINLAND_3 9
42 #define ENGLAND_3 10
43 #define JAPAN_3   11
44 
45 #define ALLIED  0
46 #define ENEMY   1
47 #define NEUTRAL 2
48 
49 #define BOMBER  0
50 #define PLANE   1
51 #define FIGHTER 2
52 
53 #define LEFT    0
54 #define RIGHT   1
55 
56 extern int player_sides[16];
57 
58 int number_of_planes[16];
59 int miss_plane_direction[16];
60 int miss_pl_x[16];
61 int miss_pl_y[16];
62 int fighter[16];
63 char mission_names[24][30] = { "Coast Islands", "Japanese Counter-Attack", "English Channel", "Treachery", "Capture", "Against Odds",
64     "Beach-Head", "Complex Wipeout", "Beach-Head II", "Troop Escort", "Wood War", "Showtime",
65     "Storehunt", "Patriot Flight", "Bombing Raid", "Radio Interference", "Channel Tunnel", "Lord of the Lagoon",
66     "Tactical Bombardment", "Finnish Outpost", "Ransom", "Harbor Hazard", "Sweating Sauna", "Oasis Offence"
67 };
68 
69 void init_mission(int coutry, int number);
70 void init_germany(int number);
71 void init_finland(int number);
72 void init_england(int number);
73 void init_japan(int number);
74 
75 
init_mission(int country,int number)76 void init_mission(int country, int number) {
77     switch (country) {
78     case GERMANY:
79         init_germany(number);
80         break;
81 
82     case FINLAND:
83         init_finland(number);
84         break;
85 
86     case ENGLAND:
87         init_england(number);
88         break;
89 
90     case JAPAN:
91         init_japan(number);
92         break;
93 
94 
95     }
96 
97 
98 
99 }
100 
init_germany(int number)101 void init_germany(int number) {
102     switch (number) {
103     case 0:
104         player_sides[GERMAN_1] = ALLIED;
105         player_sides[FINLAND_1] = NEUTRAL;
106         player_sides[ENGLAND_1] = NEUTRAL;
107         player_sides[JAPAN_1] = ENEMY;
108         player_sides[GERMAN_2] = ALLIED;
109         player_sides[FINLAND_2] = NEUTRAL;
110         player_sides[ENGLAND_2] = NEUTRAL;
111         player_sides[JAPAN_2] = ENEMY;
112         player_sides[GERMAN_3] = ALLIED;
113         player_sides[FINLAND_3] = NEUTRAL;
114         player_sides[ENGLAND_3] = NEUTRAL;
115         player_sides[JAPAN_3] = ENEMY;
116 
117         number_of_planes[GERMAN_1] = 3;
118         number_of_planes[FINLAND_1] = 0;
119         number_of_planes[ENGLAND_1] = 0;
120         number_of_planes[JAPAN_1] = 0;
121         number_of_planes[GERMAN_2] = 0;
122         number_of_planes[FINLAND_2] = 0;
123         number_of_planes[ENGLAND_2] = 0;
124         number_of_planes[JAPAN_2] = 0;
125         number_of_planes[GERMAN_3] = 0;
126         number_of_planes[FINLAND_3] = 0;
127         number_of_planes[ENGLAND_3] = 0;
128         number_of_planes[JAPAN_3] = 0;
129 
130         miss_plane_direction[GERMAN_1] = 0;
131         miss_plane_direction[FINLAND_1] = 0;
132         miss_plane_direction[ENGLAND_1] = 0;
133         miss_plane_direction[JAPAN_1] = 0;
134         miss_plane_direction[GERMAN_2] = 0;
135         miss_plane_direction[FINLAND_2] = 0;
136         miss_plane_direction[ENGLAND_2] = 0;
137         miss_plane_direction[JAPAN_2] = 0;
138         miss_plane_direction[GERMAN_3] = 0;
139         miss_plane_direction[FINLAND_3] = 0;
140         miss_plane_direction[ENGLAND_3] = 0;
141         miss_plane_direction[JAPAN_3] = 0;
142 
143         miss_pl_x[GERMAN_1] = 0;
144         miss_pl_x[FINLAND_1] = 0;
145         miss_pl_x[ENGLAND_1] = 0;
146         miss_pl_x[JAPAN_1] = 0;
147         miss_pl_x[GERMAN_2] = 0;
148         miss_pl_x[FINLAND_2] = 0;
149         miss_pl_x[ENGLAND_2] = 0;
150         miss_pl_x[JAPAN_2] = 0;
151         miss_pl_x[GERMAN_3] = 0;
152         miss_pl_x[FINLAND_3] = 0;
153         miss_pl_x[ENGLAND_3] = 0;
154         miss_pl_x[JAPAN_3] = 0;
155 
156         miss_pl_y[GERMAN_1] = 0;
157         miss_pl_y[FINLAND_1] = 0;
158         miss_pl_y[ENGLAND_1] = 0;
159         miss_pl_y[JAPAN_1] = 0;
160         miss_pl_y[GERMAN_2] = 0;
161         miss_pl_y[FINLAND_2] = 0;
162         miss_pl_y[ENGLAND_2] = 0;
163         miss_pl_y[JAPAN_2] = 0;
164         miss_pl_y[GERMAN_3] = 0;
165         miss_pl_y[FINLAND_3] = 0;
166         miss_pl_y[ENGLAND_3] = 0;
167         miss_pl_y[JAPAN_3] = 0;
168 
169         fighter[GERMAN_1] = 0;
170         fighter[FINLAND_1] = 0;
171         fighter[ENGLAND_1] = 0;
172         fighter[JAPAN_1] = 0;
173         fighter[GERMAN_2] = 0;
174         fighter[FINLAND_2] = 0;
175         fighter[ENGLAND_2] = 0;
176         fighter[JAPAN_2] = 0;
177         fighter[GERMAN_3] = 0;
178         fighter[FINLAND_3] = 0;
179         fighter[ENGLAND_3] = 0;
180         fighter[JAPAN_3] = 0;
181         break;
182         //Japanese counter attack
183     case 1:
184         player_sides[GERMAN_1] = ALLIED;
185         player_sides[FINLAND_1] = NEUTRAL;
186         player_sides[ENGLAND_1] = NEUTRAL;
187         player_sides[JAPAN_1] = ENEMY;
188         player_sides[GERMAN_2] = ALLIED;
189         player_sides[FINLAND_2] = NEUTRAL;
190         player_sides[ENGLAND_2] = NEUTRAL;
191         player_sides[JAPAN_2] = ENEMY;
192         player_sides[GERMAN_3] = ALLIED;
193         player_sides[FINLAND_3] = NEUTRAL;
194         player_sides[ENGLAND_3] = NEUTRAL;
195         player_sides[JAPAN_3] = ENEMY;
196 
197         number_of_planes[GERMAN_1] = 1;
198         number_of_planes[FINLAND_1] = 0;
199         number_of_planes[ENGLAND_1] = 0;
200         number_of_planes[JAPAN_1] = 1;
201         number_of_planes[GERMAN_2] = 0;
202         number_of_planes[FINLAND_2] = 0;
203         number_of_planes[ENGLAND_2] = 0;
204         number_of_planes[JAPAN_2] = 0;
205         number_of_planes[GERMAN_3] = 0;
206         number_of_planes[FINLAND_3] = 0;
207         number_of_planes[ENGLAND_3] = 0;
208         number_of_planes[JAPAN_3] = 1;
209 
210         miss_plane_direction[GERMAN_1] = 0;
211         miss_plane_direction[FINLAND_1] = 0;
212         miss_plane_direction[ENGLAND_1] = 0;
213         miss_plane_direction[JAPAN_1] = LEFT;
214         miss_plane_direction[GERMAN_2] = 0;
215         miss_plane_direction[FINLAND_2] = 0;
216         miss_plane_direction[ENGLAND_2] = 0;
217         miss_plane_direction[JAPAN_2] = LEFT;
218         miss_plane_direction[GERMAN_3] = 0;
219         miss_plane_direction[FINLAND_3] = 0;
220         miss_plane_direction[ENGLAND_3] = 0;
221         miss_plane_direction[JAPAN_3] = LEFT;
222 
223         miss_pl_x[GERMAN_1] = 0;
224         miss_pl_x[FINLAND_1] = 0;
225         miss_pl_x[ENGLAND_1] = 0;
226         miss_pl_x[JAPAN_1] = 1750;
227         miss_pl_x[GERMAN_2] = 0;
228         miss_pl_x[FINLAND_2] = 0;
229         miss_pl_x[ENGLAND_2] = 0;
230         miss_pl_x[JAPAN_2] = 0;
231         miss_pl_x[GERMAN_3] = 0;
232         miss_pl_x[FINLAND_3] = 0;
233         miss_pl_x[ENGLAND_3] = 0;
234         miss_pl_x[JAPAN_3] = 2002;
235 
236         miss_pl_y[GERMAN_1] = 0;
237         miss_pl_y[FINLAND_1] = 0;
238         miss_pl_y[ENGLAND_1] = 0;
239         miss_pl_y[JAPAN_1] = 150;
240         miss_pl_y[GERMAN_2] = 0;
241         miss_pl_y[FINLAND_2] = 0;
242         miss_pl_y[ENGLAND_2] = 0;
243         miss_pl_y[JAPAN_2] = 0;
244         miss_pl_y[GERMAN_3] = 0;
245         miss_pl_y[FINLAND_3] = 0;
246         miss_pl_y[ENGLAND_3] = 0;
247         miss_pl_y[JAPAN_3] = 145;
248 
249         fighter[GERMAN_1] = PLANE;
250         fighter[FINLAND_1] = PLANE;
251         fighter[ENGLAND_1] = PLANE;
252         fighter[JAPAN_1] = BOMBER;
253         fighter[GERMAN_2] = PLANE;
254         fighter[FINLAND_2] = PLANE;
255         fighter[ENGLAND_2] = PLANE;
256         fighter[JAPAN_2] = FIGHTER;
257         fighter[GERMAN_3] = PLANE;
258         fighter[FINLAND_3] = PLANE;
259         fighter[ENGLAND_3] = PLANE;
260         fighter[JAPAN_3] = BOMBER;
261         break;
262         //English Canal
263     case 2:
264         player_sides[GERMAN_1] = ALLIED;
265         player_sides[FINLAND_1] = NEUTRAL;
266         player_sides[ENGLAND_1] = ENEMY;
267         player_sides[JAPAN_1] = NEUTRAL;
268         player_sides[GERMAN_2] = ALLIED;
269         player_sides[FINLAND_2] = NEUTRAL;
270         player_sides[ENGLAND_2] = ENEMY;
271         player_sides[JAPAN_2] = NEUTRAL;
272         player_sides[GERMAN_3] = ALLIED;
273         player_sides[FINLAND_3] = NEUTRAL;
274         player_sides[ENGLAND_3] = NEUTRAL;
275         player_sides[JAPAN_3] = NEUTRAL;
276 
277         number_of_planes[GERMAN_1] = 1;
278         number_of_planes[FINLAND_1] = 0;
279         number_of_planes[ENGLAND_1] = 2;
280         number_of_planes[JAPAN_1] = 0;
281         number_of_planes[GERMAN_2] = 2;
282         number_of_planes[FINLAND_2] = 0;
283         number_of_planes[ENGLAND_2] = 2;
284         number_of_planes[JAPAN_2] = 0;
285         number_of_planes[GERMAN_3] = 1;
286         number_of_planes[FINLAND_3] = 0;
287         number_of_planes[ENGLAND_3] = 0;
288         number_of_planes[JAPAN_3] = 0;
289 
290         miss_plane_direction[GERMAN_1] = 0;
291         miss_plane_direction[FINLAND_1] = 0;
292         miss_plane_direction[ENGLAND_1] = 0;
293         miss_plane_direction[JAPAN_1] = 0;
294         miss_plane_direction[GERMAN_2] = 0;
295         miss_plane_direction[FINLAND_2] = 0;
296         miss_plane_direction[ENGLAND_2] = 0;
297         miss_plane_direction[JAPAN_2] = 0;
298         miss_plane_direction[GERMAN_3] = 0;
299         miss_plane_direction[FINLAND_3] = 0;
300         miss_plane_direction[ENGLAND_3] = 0;
301         miss_plane_direction[JAPAN_3] = 0;
302 
303         miss_pl_x[GERMAN_1] = 0;
304         miss_pl_x[FINLAND_1] = 0;
305         miss_pl_x[ENGLAND_1] = 0;
306         miss_pl_x[JAPAN_1] = 0;
307         miss_pl_x[GERMAN_2] = 0;
308         miss_pl_x[FINLAND_2] = 0;
309         miss_pl_x[ENGLAND_2] = 0;
310         miss_pl_x[JAPAN_2] = 0;
311         miss_pl_x[GERMAN_3] = 0;
312         miss_pl_x[FINLAND_3] = 0;
313         miss_pl_x[ENGLAND_3] = 0;
314         miss_pl_x[JAPAN_3] = 0;
315 
316         miss_pl_y[GERMAN_1] = 0;
317         miss_pl_y[FINLAND_1] = 0;
318         miss_pl_y[ENGLAND_1] = 0;
319         miss_pl_y[JAPAN_1] = 0;
320         miss_pl_y[GERMAN_2] = 0;
321         miss_pl_y[FINLAND_2] = 0;
322         miss_pl_y[ENGLAND_2] = 0;
323         miss_pl_y[JAPAN_2] = 0;
324         miss_pl_y[GERMAN_3] = 0;
325         miss_pl_y[FINLAND_3] = 0;
326         miss_pl_y[ENGLAND_3] = 0;
327         miss_pl_y[JAPAN_3] = 0;
328 
329         fighter[GERMAN_1] = FIGHTER;
330         fighter[FINLAND_1] = 0;
331         fighter[ENGLAND_1] = FIGHTER;
332         fighter[JAPAN_1] = 0;
333         fighter[GERMAN_2] = BOMBER;
334         fighter[FINLAND_2] = 0;
335         fighter[ENGLAND_2] = BOMBER;
336         fighter[JAPAN_2] = 0;
337         fighter[GERMAN_3] = FIGHTER;
338         fighter[FINLAND_3] = 0;
339         fighter[ENGLAND_3] = 0;
340         fighter[JAPAN_3] = 0;
341         break;
342         //Treachery
343     case 3:
344         player_sides[GERMAN_1] = ALLIED;
345         player_sides[FINLAND_1] = ENEMY;
346         player_sides[ENGLAND_1] = ENEMY;
347         player_sides[JAPAN_1] = ALLIED;
348         player_sides[GERMAN_2] = ALLIED;
349         player_sides[FINLAND_2] = ENEMY;
350         player_sides[ENGLAND_2] = ENEMY;
351         player_sides[JAPAN_2] = ALLIED;
352         player_sides[GERMAN_3] = ALLIED;
353         player_sides[FINLAND_3] = ENEMY;
354         player_sides[ENGLAND_3] = ENEMY;
355         player_sides[JAPAN_3] = ALLIED;
356 
357         number_of_planes[GERMAN_1] = 3;
358         number_of_planes[FINLAND_1] = 3;
359         number_of_planes[ENGLAND_1] = 3;
360         number_of_planes[JAPAN_1] = 3;
361         number_of_planes[GERMAN_2] = 0;
362         number_of_planes[FINLAND_2] = 0;
363         number_of_planes[ENGLAND_2] = 0;
364         number_of_planes[JAPAN_2] = 0;
365         number_of_planes[GERMAN_3] = 0;
366         number_of_planes[FINLAND_3] = 0;
367         number_of_planes[ENGLAND_3] = 0;
368         number_of_planes[JAPAN_3] = 0;
369 
370         miss_plane_direction[GERMAN_1] = 0;
371         miss_plane_direction[FINLAND_1] = 0;
372         miss_plane_direction[ENGLAND_1] = 0;
373         miss_plane_direction[JAPAN_1] = 0;
374         miss_plane_direction[GERMAN_2] = 0;
375         miss_plane_direction[FINLAND_2] = 0;
376         miss_plane_direction[ENGLAND_2] = 0;
377         miss_plane_direction[JAPAN_2] = 0;
378         miss_plane_direction[GERMAN_3] = 0;
379         miss_plane_direction[FINLAND_3] = 0;
380         miss_plane_direction[ENGLAND_3] = 0;
381         miss_plane_direction[JAPAN_3] = 0;
382 
383         miss_pl_x[GERMAN_1] = 0;
384         miss_pl_x[FINLAND_1] = 0;
385         miss_pl_x[ENGLAND_1] = 0;
386         miss_pl_x[JAPAN_1] = 0;
387         miss_pl_x[GERMAN_2] = 0;
388         miss_pl_x[FINLAND_2] = 0;
389         miss_pl_x[ENGLAND_2] = 0;
390         miss_pl_x[JAPAN_2] = 0;
391         miss_pl_x[GERMAN_3] = 0;
392         miss_pl_x[FINLAND_3] = 0;
393         miss_pl_x[ENGLAND_3] = 0;
394         miss_pl_x[JAPAN_3] = 0;
395 
396         miss_pl_y[GERMAN_1] = 0;
397         miss_pl_y[FINLAND_1] = 0;
398         miss_pl_y[ENGLAND_1] = 0;
399         miss_pl_y[JAPAN_1] = 0;
400         miss_pl_y[GERMAN_2] = 0;
401         miss_pl_y[FINLAND_2] = 0;
402         miss_pl_y[ENGLAND_2] = 0;
403         miss_pl_y[JAPAN_2] = 0;
404         miss_pl_y[GERMAN_3] = 0;
405         miss_pl_y[FINLAND_3] = 0;
406         miss_pl_y[ENGLAND_3] = 0;
407         miss_pl_y[JAPAN_3] = 0;
408 
409         fighter[GERMAN_1] = PLANE;
410         fighter[FINLAND_1] = PLANE;
411         fighter[ENGLAND_1] = PLANE;
412         fighter[JAPAN_1] = PLANE;
413         fighter[GERMAN_2] = 0;
414         fighter[FINLAND_2] = 0;
415         fighter[ENGLAND_2] = 0;
416         fighter[JAPAN_2] = 0;
417         fighter[GERMAN_3] = 0;
418         fighter[FINLAND_3] = 0;
419         fighter[ENGLAND_3] = 0;
420         fighter[JAPAN_3] = 0;
421         break;
422         //Capture
423     case 4:
424         player_sides[GERMAN_1] = ALLIED;
425         player_sides[FINLAND_1] = ENEMY;
426         player_sides[ENGLAND_1] = ENEMY;
427         player_sides[JAPAN_1] = ENEMY;
428         player_sides[GERMAN_2] = ALLIED;
429         player_sides[FINLAND_2] = ENEMY;
430         player_sides[ENGLAND_2] = ENEMY;
431         player_sides[JAPAN_2] = ENEMY;
432         player_sides[GERMAN_3] = ALLIED;
433         player_sides[FINLAND_3] = ENEMY;
434         player_sides[ENGLAND_3] = ENEMY;
435         player_sides[JAPAN_3] = ENEMY;
436 
437         number_of_planes[GERMAN_1] = 5;
438         number_of_planes[FINLAND_1] = 0;
439         number_of_planes[ENGLAND_1] = 0;
440         number_of_planes[JAPAN_1] = 0;
441         number_of_planes[GERMAN_2] = 0;
442         number_of_planes[FINLAND_2] = 0;
443         number_of_planes[ENGLAND_2] = 0;
444         number_of_planes[JAPAN_2] = 0;
445         number_of_planes[GERMAN_3] = 0;
446         number_of_planes[FINLAND_3] = 0;
447         number_of_planes[ENGLAND_3] = 0;
448         number_of_planes[JAPAN_3] = 0;
449 
450         miss_plane_direction[GERMAN_1] = 0;
451         miss_plane_direction[FINLAND_1] = 0;
452         miss_plane_direction[ENGLAND_1] = 0;
453         miss_plane_direction[JAPAN_1] = 0;
454         miss_plane_direction[GERMAN_2] = 0;
455         miss_plane_direction[FINLAND_2] = 0;
456         miss_plane_direction[ENGLAND_2] = 0;
457         miss_plane_direction[JAPAN_2] = 0;
458         miss_plane_direction[GERMAN_3] = 0;
459         miss_plane_direction[FINLAND_3] = 0;
460         miss_plane_direction[ENGLAND_3] = 0;
461         miss_plane_direction[JAPAN_3] = 0;
462 
463         miss_pl_x[GERMAN_1] = 0;
464         miss_pl_x[FINLAND_1] = 0;
465         miss_pl_x[ENGLAND_1] = 0;
466         miss_pl_x[JAPAN_1] = 0;
467         miss_pl_x[GERMAN_2] = 0;
468         miss_pl_x[FINLAND_2] = 0;
469         miss_pl_x[ENGLAND_2] = 0;
470         miss_pl_x[JAPAN_2] = 0;
471         miss_pl_x[GERMAN_3] = 0;
472         miss_pl_x[FINLAND_3] = 0;
473         miss_pl_x[ENGLAND_3] = 0;
474         miss_pl_x[JAPAN_3] = 0;
475 
476         miss_pl_y[GERMAN_1] = 0;
477         miss_pl_y[FINLAND_1] = 0;
478         miss_pl_y[ENGLAND_1] = 0;
479         miss_pl_y[JAPAN_1] = 0;
480         miss_pl_y[GERMAN_2] = 0;
481         miss_pl_y[FINLAND_2] = 0;
482         miss_pl_y[ENGLAND_2] = 0;
483         miss_pl_y[JAPAN_2] = 0;
484         miss_pl_y[GERMAN_3] = 0;
485         miss_pl_y[FINLAND_3] = 0;
486         miss_pl_y[ENGLAND_3] = 0;
487         miss_pl_y[JAPAN_3] = 0;
488 
489         fighter[GERMAN_1] = PLANE;
490         fighter[FINLAND_1] = 0;
491         fighter[ENGLAND_1] = 0;
492         fighter[JAPAN_1] = 0;
493         fighter[GERMAN_2] = 0;
494         fighter[FINLAND_2] = 0;
495         fighter[ENGLAND_2] = 0;
496         fighter[JAPAN_2] = 0;
497         fighter[GERMAN_3] = 0;
498         fighter[FINLAND_3] = 0;
499         fighter[ENGLAND_3] = 0;
500         fighter[JAPAN_3] = 0;
501         break;
502         //Against odds
503     case 5:
504         player_sides[GERMAN_1] = ALLIED;
505         player_sides[FINLAND_1] = ENEMY;
506         player_sides[ENGLAND_1] = ENEMY;
507         player_sides[JAPAN_1] = ENEMY;
508         player_sides[GERMAN_2] = ALLIED;
509         player_sides[FINLAND_2] = ENEMY;
510         player_sides[ENGLAND_2] = ENEMY;
511         player_sides[JAPAN_2] = ENEMY;
512         player_sides[GERMAN_3] = ALLIED;
513         player_sides[FINLAND_3] = ENEMY;
514         player_sides[ENGLAND_3] = ENEMY;
515         player_sides[JAPAN_3] = ENEMY;
516 
517         number_of_planes[GERMAN_1] = 7;
518         number_of_planes[FINLAND_1] = 3;
519         number_of_planes[ENGLAND_1] = 3;
520         number_of_planes[JAPAN_1] = 3;
521         number_of_planes[GERMAN_2] = 6;
522         number_of_planes[FINLAND_2] = 3;
523         number_of_planes[ENGLAND_2] = 3;
524         number_of_planes[JAPAN_2] = 3;
525         number_of_planes[GERMAN_3] = 6;
526         number_of_planes[FINLAND_3] = 3;
527         number_of_planes[ENGLAND_3] = 3;
528         number_of_planes[JAPAN_3] = 3;
529 
530         miss_plane_direction[GERMAN_1] = 0;
531         miss_plane_direction[FINLAND_1] = 0;
532         miss_plane_direction[ENGLAND_1] = 0;
533         miss_plane_direction[JAPAN_1] = 0;
534         miss_plane_direction[GERMAN_2] = 0;
535         miss_plane_direction[FINLAND_2] = 0;
536         miss_plane_direction[ENGLAND_2] = 0;
537         miss_plane_direction[JAPAN_2] = 0;
538         miss_plane_direction[GERMAN_3] = 0;
539         miss_plane_direction[FINLAND_3] = 0;
540         miss_plane_direction[ENGLAND_3] = 0;
541         miss_plane_direction[JAPAN_3] = 0;
542 
543         miss_pl_x[GERMAN_1] = 0;
544         miss_pl_x[FINLAND_1] = 0;
545         miss_pl_x[ENGLAND_1] = 0;
546         miss_pl_x[JAPAN_1] = 0;
547         miss_pl_x[GERMAN_2] = 0;
548         miss_pl_x[FINLAND_2] = 0;
549         miss_pl_x[ENGLAND_2] = 0;
550         miss_pl_x[JAPAN_2] = 0;
551         miss_pl_x[GERMAN_3] = 0;
552         miss_pl_x[FINLAND_3] = 0;
553         miss_pl_x[ENGLAND_3] = 0;
554         miss_pl_x[JAPAN_3] = 0;
555 
556         miss_pl_y[GERMAN_1] = 0;
557         miss_pl_y[FINLAND_1] = 0;
558         miss_pl_y[ENGLAND_1] = 0;
559         miss_pl_y[JAPAN_1] = 0;
560         miss_pl_y[GERMAN_2] = 0;
561         miss_pl_y[FINLAND_2] = 0;
562         miss_pl_y[ENGLAND_2] = 0;
563         miss_pl_y[JAPAN_2] = 0;
564         miss_pl_y[GERMAN_3] = 0;
565         miss_pl_y[FINLAND_3] = 0;
566         miss_pl_y[ENGLAND_3] = 0;
567         miss_pl_y[JAPAN_3] = 0;
568 
569         fighter[GERMAN_1] = PLANE;
570         fighter[FINLAND_1] = PLANE;
571         fighter[ENGLAND_1] = PLANE;
572         fighter[JAPAN_1] = PLANE;
573         fighter[GERMAN_2] = FIGHTER;
574         fighter[FINLAND_2] = FIGHTER;
575         fighter[ENGLAND_2] = FIGHTER;
576         fighter[JAPAN_2] = FIGHTER;
577         fighter[GERMAN_3] = BOMBER;
578         fighter[FINLAND_3] = BOMBER;
579         fighter[ENGLAND_3] = BOMBER;
580         fighter[JAPAN_3] = BOMBER;
581         break;
582     }
583 
584 }
585 
init_finland(int number)586 void init_finland(int number) {
587     switch (number) {
588         //Beach head
589     case 0:
590         player_sides[GERMAN_1] = ENEMY;
591         player_sides[FINLAND_1] = ALLIED;
592         player_sides[ENGLAND_1] = NEUTRAL;
593         player_sides[JAPAN_1] = NEUTRAL;
594         player_sides[GERMAN_2] = ENEMY;
595         player_sides[FINLAND_2] = ALLIED;
596         player_sides[ENGLAND_2] = NEUTRAL;
597         player_sides[JAPAN_2] = NEUTRAL;
598         player_sides[GERMAN_3] = ENEMY;
599         player_sides[FINLAND_3] = ALLIED;
600         player_sides[ENGLAND_3] = NEUTRAL;
601         player_sides[JAPAN_3] = NEUTRAL;
602 
603         number_of_planes[GERMAN_1] = 0;
604         number_of_planes[FINLAND_1] = 2;
605         number_of_planes[ENGLAND_1] = 0;
606         number_of_planes[JAPAN_1] = 0;
607         number_of_planes[GERMAN_2] = 0;
608         number_of_planes[FINLAND_2] = 0;
609         number_of_planes[ENGLAND_2] = 0;
610         number_of_planes[JAPAN_2] = 0;
611         number_of_planes[GERMAN_3] = 0;
612         number_of_planes[FINLAND_3] = 0;
613         number_of_planes[ENGLAND_3] = 0;
614         number_of_planes[JAPAN_3] = 0;
615 
616         miss_plane_direction[GERMAN_1] = 0;
617         miss_plane_direction[FINLAND_1] = 0;
618         miss_plane_direction[ENGLAND_1] = 0;
619         miss_plane_direction[JAPAN_1] = 0;
620         miss_plane_direction[GERMAN_2] = 0;
621         miss_plane_direction[FINLAND_2] = 0;
622         miss_plane_direction[ENGLAND_2] = 0;
623         miss_plane_direction[JAPAN_2] = 0;
624         miss_plane_direction[GERMAN_3] = 0;
625         miss_plane_direction[FINLAND_3] = 0;
626         miss_plane_direction[ENGLAND_3] = 0;
627         miss_plane_direction[JAPAN_3] = 0;
628 
629         miss_pl_x[GERMAN_1] = 0;
630         miss_pl_x[FINLAND_1] = 0;
631         miss_pl_x[ENGLAND_1] = 0;
632         miss_pl_x[JAPAN_1] = 0;
633         miss_pl_x[GERMAN_2] = 0;
634         miss_pl_x[FINLAND_2] = 0;
635         miss_pl_x[ENGLAND_2] = 0;
636         miss_pl_x[JAPAN_2] = 0;
637         miss_pl_x[GERMAN_3] = 0;
638         miss_pl_x[FINLAND_3] = 0;
639         miss_pl_x[ENGLAND_3] = 0;
640         miss_pl_x[JAPAN_3] = 0;
641 
642         miss_pl_y[GERMAN_1] = 0;
643         miss_pl_y[FINLAND_1] = 0;
644         miss_pl_y[ENGLAND_1] = 0;
645         miss_pl_y[JAPAN_1] = 0;
646         miss_pl_y[GERMAN_2] = 0;
647         miss_pl_y[FINLAND_2] = 0;
648         miss_pl_y[ENGLAND_2] = 0;
649         miss_pl_y[JAPAN_2] = 0;
650         miss_pl_y[GERMAN_3] = 0;
651         miss_pl_y[FINLAND_3] = 0;
652         miss_pl_y[ENGLAND_3] = 0;
653         miss_pl_y[JAPAN_3] = 0;
654 
655         fighter[GERMAN_1] = PLANE;
656         fighter[FINLAND_1] = PLANE;
657         fighter[ENGLAND_1] = PLANE;
658         fighter[JAPAN_1] = PLANE;
659         fighter[GERMAN_2] = PLANE;
660         fighter[FINLAND_2] = PLANE;
661         fighter[ENGLAND_2] = PLANE;
662         fighter[JAPAN_2] = PLANE;
663         fighter[GERMAN_3] = PLANE;
664         fighter[FINLAND_3] = PLANE;
665         fighter[ENGLAND_3] = PLANE;
666         fighter[JAPAN_3] = PLANE;
667         break;
668         //Complex Wipeout
669     case 1:
670         player_sides[GERMAN_1] = NEUTRAL;
671         player_sides[FINLAND_1] = ALLIED;
672         player_sides[ENGLAND_1] = ENEMY;
673         player_sides[JAPAN_1] = NEUTRAL;
674         player_sides[GERMAN_2] = NEUTRAL;
675         player_sides[FINLAND_2] = ALLIED;
676         player_sides[ENGLAND_2] = ENEMY;
677         player_sides[JAPAN_2] = NEUTRAL;
678         player_sides[GERMAN_3] = NEUTRAL;
679         player_sides[FINLAND_3] = ALLIED;
680         player_sides[ENGLAND_3] = ENEMY;
681         player_sides[JAPAN_3] = NEUTRAL;
682 
683         number_of_planes[GERMAN_1] = 0;
684         number_of_planes[FINLAND_1] = 3;
685         number_of_planes[ENGLAND_1] = 0;
686         number_of_planes[JAPAN_1] = 0;
687         number_of_planes[GERMAN_2] = 0;
688         number_of_planes[FINLAND_2] = 0;
689         number_of_planes[ENGLAND_2] = 0;
690         number_of_planes[JAPAN_2] = 0;
691         number_of_planes[GERMAN_3] = 0;
692         number_of_planes[FINLAND_3] = 0;
693         number_of_planes[ENGLAND_3] = 0;
694         number_of_planes[JAPAN_3] = 0;
695 
696         miss_plane_direction[GERMAN_1] = 0;
697         miss_plane_direction[FINLAND_1] = 0;
698         miss_plane_direction[ENGLAND_1] = 0;
699         miss_plane_direction[JAPAN_1] = 0;
700         miss_plane_direction[GERMAN_2] = 0;
701         miss_plane_direction[FINLAND_2] = 0;
702         miss_plane_direction[ENGLAND_2] = 0;
703         miss_plane_direction[JAPAN_2] = 0;
704         miss_plane_direction[GERMAN_3] = 0;
705         miss_plane_direction[FINLAND_3] = 0;
706         miss_plane_direction[ENGLAND_3] = 0;
707         miss_plane_direction[JAPAN_3] = 0;
708 
709         miss_pl_x[GERMAN_1] = 0;
710         miss_pl_x[FINLAND_1] = 0;
711         miss_pl_x[ENGLAND_1] = 0;
712         miss_pl_x[JAPAN_1] = 0;
713         miss_pl_x[GERMAN_2] = 0;
714         miss_pl_x[FINLAND_2] = 0;
715         miss_pl_x[ENGLAND_2] = 0;
716         miss_pl_x[JAPAN_2] = 0;
717         miss_pl_x[GERMAN_3] = 0;
718         miss_pl_x[FINLAND_3] = 0;
719         miss_pl_x[ENGLAND_3] = 0;
720         miss_pl_x[JAPAN_3] = 0;
721 
722         miss_pl_y[GERMAN_1] = 0;
723         miss_pl_y[FINLAND_1] = 0;
724         miss_pl_y[ENGLAND_1] = 0;
725         miss_pl_y[JAPAN_1] = 0;
726         miss_pl_y[GERMAN_2] = 0;
727         miss_pl_y[FINLAND_2] = 0;
728         miss_pl_y[ENGLAND_2] = 0;
729         miss_pl_y[JAPAN_2] = 0;
730         miss_pl_y[GERMAN_3] = 0;
731         miss_pl_y[FINLAND_3] = 0;
732         miss_pl_y[ENGLAND_3] = 0;
733         miss_pl_y[JAPAN_3] = 0;
734 
735         fighter[GERMAN_1] = PLANE;
736         fighter[FINLAND_1] = PLANE;
737         fighter[ENGLAND_1] = PLANE;
738         fighter[JAPAN_1] = PLANE;
739         fighter[GERMAN_2] = PLANE;
740         fighter[FINLAND_2] = PLANE;
741         fighter[ENGLAND_2] = PLANE;
742         fighter[JAPAN_2] = PLANE;
743         fighter[GERMAN_3] = PLANE;
744         fighter[FINLAND_3] = PLANE;
745         fighter[ENGLAND_3] = PLANE;
746         fighter[JAPAN_3] = PLANE;
747         break;
748         //Beach head 2
749     case 2:
750         player_sides[GERMAN_1] = ENEMY;
751         player_sides[FINLAND_1] = ALLIED;
752         player_sides[ENGLAND_1] = NEUTRAL;
753         player_sides[JAPAN_1] = NEUTRAL;
754         player_sides[GERMAN_2] = ENEMY;
755         player_sides[FINLAND_2] = ALLIED;
756         player_sides[ENGLAND_2] = NEUTRAL;
757         player_sides[JAPAN_2] = NEUTRAL;
758         player_sides[GERMAN_3] = ENEMY;
759         player_sides[FINLAND_3] = ALLIED;
760         player_sides[ENGLAND_3] = NEUTRAL;
761         player_sides[JAPAN_3] = NEUTRAL;
762 
763         number_of_planes[GERMAN_1] = 3;
764         number_of_planes[FINLAND_1] = 3;
765         number_of_planes[ENGLAND_1] = 0;
766         number_of_planes[JAPAN_1] = 0;
767         number_of_planes[GERMAN_2] = 3;
768         number_of_planes[FINLAND_2] = 3;
769         number_of_planes[ENGLAND_2] = 0;
770         number_of_planes[JAPAN_2] = 0;
771         number_of_planes[GERMAN_3] = 3;
772         number_of_planes[FINLAND_3] = 3;
773         number_of_planes[ENGLAND_3] = 0;
774         number_of_planes[JAPAN_3] = 0;
775 
776         miss_plane_direction[GERMAN_1] = 0;
777         miss_plane_direction[FINLAND_1] = 0;
778         miss_plane_direction[ENGLAND_1] = 0;
779         miss_plane_direction[JAPAN_1] = 0;
780         miss_plane_direction[GERMAN_2] = 0;
781         miss_plane_direction[FINLAND_2] = 0;
782         miss_plane_direction[ENGLAND_2] = 0;
783         miss_plane_direction[JAPAN_2] = 0;
784         miss_plane_direction[GERMAN_3] = 0;
785         miss_plane_direction[FINLAND_3] = 0;
786         miss_plane_direction[ENGLAND_3] = 0;
787         miss_plane_direction[JAPAN_3] = 0;
788 
789         miss_pl_x[GERMAN_1] = 0;
790         miss_pl_x[FINLAND_1] = 0;
791         miss_pl_x[ENGLAND_1] = 0;
792         miss_pl_x[JAPAN_1] = 0;
793         miss_pl_x[GERMAN_2] = 0;
794         miss_pl_x[FINLAND_2] = 0;
795         miss_pl_x[ENGLAND_2] = 0;
796         miss_pl_x[JAPAN_2] = 0;
797         miss_pl_x[GERMAN_3] = 0;
798         miss_pl_x[FINLAND_3] = 0;
799         miss_pl_x[ENGLAND_3] = 0;
800         miss_pl_x[JAPAN_3] = 0;
801 
802         miss_pl_y[GERMAN_1] = 0;
803         miss_pl_y[FINLAND_1] = 0;
804         miss_pl_y[ENGLAND_1] = 0;
805         miss_pl_y[JAPAN_1] = 0;
806         miss_pl_y[GERMAN_2] = 0;
807         miss_pl_y[FINLAND_2] = 0;
808         miss_pl_y[ENGLAND_2] = 0;
809         miss_pl_y[JAPAN_2] = 0;
810         miss_pl_y[GERMAN_3] = 0;
811         miss_pl_y[FINLAND_3] = 0;
812         miss_pl_y[ENGLAND_3] = 0;
813         miss_pl_y[JAPAN_3] = 0;
814 
815         fighter[GERMAN_1] = PLANE;
816         fighter[FINLAND_1] = PLANE;
817         fighter[ENGLAND_1] = PLANE;
818         fighter[JAPAN_1] = PLANE;
819         fighter[GERMAN_2] = PLANE;
820         fighter[FINLAND_2] = PLANE;
821         fighter[ENGLAND_2] = PLANE;
822         fighter[JAPAN_2] = PLANE;
823         fighter[GERMAN_3] = PLANE;
824         fighter[FINLAND_3] = PLANE;
825         fighter[ENGLAND_3] = PLANE;
826         fighter[JAPAN_3] = PLANE;
827         break;
828         //Troop escort
829     case 3:
830         player_sides[GERMAN_1] = ENEMY;
831         player_sides[FINLAND_1] = ALLIED;
832         player_sides[ENGLAND_1] = ALLIED;
833         player_sides[JAPAN_1] = ENEMY;
834         player_sides[GERMAN_2] = ENEMY;
835         player_sides[FINLAND_2] = ALLIED;
836         player_sides[ENGLAND_2] = NEUTRAL;
837         player_sides[JAPAN_2] = NEUTRAL;
838         player_sides[GERMAN_3] = ENEMY;
839         player_sides[FINLAND_3] = ALLIED;
840         player_sides[ENGLAND_3] = NEUTRAL;
841         player_sides[JAPAN_3] = NEUTRAL;
842 
843         number_of_planes[GERMAN_1] = 0;
844         number_of_planes[FINLAND_1] = 2;
845         number_of_planes[ENGLAND_1] = 2;
846         number_of_planes[JAPAN_1] = 0;
847         number_of_planes[GERMAN_2] = 0;
848         number_of_planes[FINLAND_2] = 0;
849         number_of_planes[ENGLAND_2] = 0;
850         number_of_planes[JAPAN_2] = 0;
851         number_of_planes[GERMAN_3] = 0;
852         number_of_planes[FINLAND_3] = 0;
853         number_of_planes[ENGLAND_3] = 0;
854         number_of_planes[JAPAN_3] = 0;
855 
856         miss_plane_direction[GERMAN_1] = 0;
857         miss_plane_direction[FINLAND_1] = 0;
858         miss_plane_direction[ENGLAND_1] = 0;
859         miss_plane_direction[JAPAN_1] = 0;
860         miss_plane_direction[GERMAN_2] = 0;
861         miss_plane_direction[FINLAND_2] = 0;
862         miss_plane_direction[ENGLAND_2] = 0;
863         miss_plane_direction[JAPAN_2] = 0;
864         miss_plane_direction[GERMAN_3] = 0;
865         miss_plane_direction[FINLAND_3] = 0;
866         miss_plane_direction[ENGLAND_3] = 0;
867         miss_plane_direction[JAPAN_3] = 0;
868 
869         miss_pl_x[GERMAN_1] = 0;
870         miss_pl_x[FINLAND_1] = 0;
871         miss_pl_x[ENGLAND_1] = 0;
872         miss_pl_x[JAPAN_1] = 0;
873         miss_pl_x[GERMAN_2] = 0;
874         miss_pl_x[FINLAND_2] = 0;
875         miss_pl_x[ENGLAND_2] = 0;
876         miss_pl_x[JAPAN_2] = 0;
877         miss_pl_x[GERMAN_3] = 0;
878         miss_pl_x[FINLAND_3] = 0;
879         miss_pl_x[ENGLAND_3] = 0;
880         miss_pl_x[JAPAN_3] = 0;
881 
882         miss_pl_y[GERMAN_1] = 0;
883         miss_pl_y[FINLAND_1] = 0;
884         miss_pl_y[ENGLAND_1] = 0;
885         miss_pl_y[JAPAN_1] = 0;
886         miss_pl_y[GERMAN_2] = 0;
887         miss_pl_y[FINLAND_2] = 0;
888         miss_pl_y[ENGLAND_2] = 0;
889         miss_pl_y[JAPAN_2] = 0;
890         miss_pl_y[GERMAN_3] = 0;
891         miss_pl_y[FINLAND_3] = 0;
892         miss_pl_y[ENGLAND_3] = 0;
893         miss_pl_y[JAPAN_3] = 0;
894 
895         fighter[GERMAN_1] = PLANE;
896         fighter[FINLAND_1] = PLANE;
897         fighter[ENGLAND_1] = PLANE;
898         fighter[JAPAN_1] = PLANE;
899         fighter[GERMAN_2] = PLANE;
900         fighter[FINLAND_2] = PLANE;
901         fighter[ENGLAND_2] = PLANE;
902         fighter[JAPAN_2] = PLANE;
903         fighter[GERMAN_3] = PLANE;
904         fighter[FINLAND_3] = PLANE;
905         fighter[ENGLAND_3] = PLANE;
906         fighter[JAPAN_3] = PLANE;
907         break;
908         //Wood war
909     case 4:
910         player_sides[GERMAN_1] = NEUTRAL;
911         player_sides[FINLAND_1] = ALLIED;
912         player_sides[ENGLAND_1] = ENEMY;
913         player_sides[JAPAN_1] = ENEMY;
914         player_sides[GERMAN_2] = NEUTRAL;
915         player_sides[FINLAND_2] = ALLIED;
916         player_sides[ENGLAND_2] = ENEMY;
917         player_sides[JAPAN_2] = ENEMY;
918         player_sides[GERMAN_3] = NEUTRAL;
919         player_sides[FINLAND_3] = ALLIED;
920         player_sides[ENGLAND_3] = ENEMY;
921         player_sides[JAPAN_3] = ENEMY;
922 
923         number_of_planes[GERMAN_1] = 0;
924         number_of_planes[FINLAND_1] = 3;
925         number_of_planes[ENGLAND_1] = 3;
926         number_of_planes[JAPAN_1] = 3;
927         number_of_planes[GERMAN_2] = 0;
928         number_of_planes[FINLAND_2] = 2;
929         number_of_planes[ENGLAND_2] = 3;
930         number_of_planes[JAPAN_2] = 3;
931         number_of_planes[GERMAN_3] = 0;
932         number_of_planes[FINLAND_3] = 2;
933         number_of_planes[ENGLAND_3] = 0;
934         number_of_planes[JAPAN_3] = 0;
935 
936         miss_plane_direction[GERMAN_1] = 0;
937         miss_plane_direction[FINLAND_1] = 0;
938         miss_plane_direction[ENGLAND_1] = 0;
939         miss_plane_direction[JAPAN_1] = 0;
940         miss_plane_direction[GERMAN_2] = 0;
941         miss_plane_direction[FINLAND_2] = 0;
942         miss_plane_direction[ENGLAND_2] = 0;
943         miss_plane_direction[JAPAN_2] = 0;
944         miss_plane_direction[GERMAN_3] = 0;
945         miss_plane_direction[FINLAND_3] = 0;
946         miss_plane_direction[ENGLAND_3] = 0;
947         miss_plane_direction[JAPAN_3] = 0;
948 
949         miss_pl_x[GERMAN_1] = 0;
950         miss_pl_x[FINLAND_1] = 0;
951         miss_pl_x[ENGLAND_1] = 0;
952         miss_pl_x[JAPAN_1] = 0;
953         miss_pl_x[GERMAN_2] = 0;
954         miss_pl_x[FINLAND_2] = 0;
955         miss_pl_x[ENGLAND_2] = 0;
956         miss_pl_x[JAPAN_2] = 0;
957         miss_pl_x[GERMAN_3] = 0;
958         miss_pl_x[FINLAND_3] = 0;
959         miss_pl_x[ENGLAND_3] = 0;
960         miss_pl_x[JAPAN_3] = 0;
961 
962         miss_pl_y[GERMAN_1] = 0;
963         miss_pl_y[FINLAND_1] = 0;
964         miss_pl_y[ENGLAND_1] = 0;
965         miss_pl_y[JAPAN_1] = 0;
966         miss_pl_y[GERMAN_2] = 0;
967         miss_pl_y[FINLAND_2] = 0;
968         miss_pl_y[ENGLAND_2] = 0;
969         miss_pl_y[JAPAN_2] = 0;
970         miss_pl_y[GERMAN_3] = 0;
971         miss_pl_y[FINLAND_3] = 0;
972         miss_pl_y[ENGLAND_3] = 0;
973         miss_pl_y[JAPAN_3] = 0;
974 
975         fighter[GERMAN_1] = PLANE;
976         fighter[FINLAND_1] = PLANE;
977         fighter[ENGLAND_1] = BOMBER;
978         fighter[JAPAN_1] = FIGHTER;
979         fighter[GERMAN_2] = PLANE;
980         fighter[FINLAND_2] = PLANE;
981         fighter[ENGLAND_2] = BOMBER;
982         fighter[JAPAN_2] = FIGHTER;
983         fighter[GERMAN_3] = PLANE;
984         fighter[FINLAND_3] = PLANE;
985         fighter[ENGLAND_3] = PLANE;
986         fighter[JAPAN_3] = PLANE;
987         break;
988         //Show time
989     case 5:
990         player_sides[GERMAN_1] = ENEMY;
991         player_sides[FINLAND_1] = ALLIED;
992         player_sides[ENGLAND_1] = ENEMY;
993         player_sides[JAPAN_1] = ENEMY;
994         player_sides[GERMAN_2] = ENEMY;
995         player_sides[FINLAND_2] = ALLIED;
996         player_sides[ENGLAND_2] = ENEMY;
997         player_sides[JAPAN_2] = ENEMY;
998         player_sides[GERMAN_3] = ENEMY;
999         player_sides[FINLAND_3] = ALLIED;
1000         player_sides[ENGLAND_3] = ENEMY;
1001         player_sides[JAPAN_3] = ENEMY;
1002 
1003         number_of_planes[GERMAN_1] = 3;
1004         number_of_planes[FINLAND_1] = 7;
1005         number_of_planes[ENGLAND_1] = 3;
1006         number_of_planes[JAPAN_1] = 3;
1007         number_of_planes[GERMAN_2] = 3;
1008         number_of_planes[FINLAND_2] = 6;
1009         number_of_planes[ENGLAND_2] = 3;
1010         number_of_planes[JAPAN_2] = 3;
1011         number_of_planes[GERMAN_3] = 3;
1012         number_of_planes[FINLAND_3] = 6;
1013         number_of_planes[ENGLAND_3] = 3;
1014         number_of_planes[JAPAN_3] = 3;
1015 
1016         miss_plane_direction[GERMAN_1] = 0;
1017         miss_plane_direction[FINLAND_1] = 0;
1018         miss_plane_direction[ENGLAND_1] = 0;
1019         miss_plane_direction[JAPAN_1] = 0;
1020         miss_plane_direction[GERMAN_2] = 0;
1021         miss_plane_direction[FINLAND_2] = 0;
1022         miss_plane_direction[ENGLAND_2] = 0;
1023         miss_plane_direction[JAPAN_2] = 0;
1024         miss_plane_direction[GERMAN_3] = 0;
1025         miss_plane_direction[FINLAND_3] = 0;
1026         miss_plane_direction[ENGLAND_3] = 0;
1027         miss_plane_direction[JAPAN_3] = 0;
1028 
1029         miss_pl_x[GERMAN_1] = 0;
1030         miss_pl_x[FINLAND_1] = 0;
1031         miss_pl_x[ENGLAND_1] = 0;
1032         miss_pl_x[JAPAN_1] = 0;
1033         miss_pl_x[GERMAN_2] = 0;
1034         miss_pl_x[FINLAND_2] = 0;
1035         miss_pl_x[ENGLAND_2] = 0;
1036         miss_pl_x[JAPAN_2] = 0;
1037         miss_pl_x[GERMAN_3] = 0;
1038         miss_pl_x[FINLAND_3] = 0;
1039         miss_pl_x[ENGLAND_3] = 0;
1040         miss_pl_x[JAPAN_3] = 0;
1041 
1042         miss_pl_y[GERMAN_1] = 0;
1043         miss_pl_y[FINLAND_1] = 0;
1044         miss_pl_y[ENGLAND_1] = 0;
1045         miss_pl_y[JAPAN_1] = 0;
1046         miss_pl_y[GERMAN_2] = 0;
1047         miss_pl_y[FINLAND_2] = 0;
1048         miss_pl_y[ENGLAND_2] = 0;
1049         miss_pl_y[JAPAN_2] = 0;
1050         miss_pl_y[GERMAN_3] = 0;
1051         miss_pl_y[FINLAND_3] = 0;
1052         miss_pl_y[ENGLAND_3] = 0;
1053         miss_pl_y[JAPAN_3] = 0;
1054 
1055         fighter[GERMAN_1] = FIGHTER;
1056         fighter[FINLAND_1] = PLANE;
1057         fighter[ENGLAND_1] = FIGHTER;
1058         fighter[JAPAN_1] = FIGHTER;
1059         fighter[GERMAN_2] = PLANE;
1060         fighter[FINLAND_2] = FIGHTER;
1061         fighter[ENGLAND_2] = PLANE;
1062         fighter[JAPAN_2] = PLANE;
1063         fighter[GERMAN_3] = PLANE;
1064         fighter[FINLAND_3] = PLANE;
1065         fighter[ENGLAND_3] = PLANE;
1066         fighter[JAPAN_3] = PLANE;
1067         break;
1068 
1069 
1070     }
1071 
1072 }
1073 
init_england(int number)1074 void init_england(int number) {
1075     switch (number) {
1076         //Storehunt
1077     case 0:
1078         player_sides[GERMAN_1] = NEUTRAL;
1079         player_sides[FINLAND_1] = ENEMY;
1080         player_sides[ENGLAND_1] = ALLIED;
1081         player_sides[JAPAN_1] = NEUTRAL;
1082         player_sides[GERMAN_2] = NEUTRAL;
1083         player_sides[FINLAND_2] = ENEMY;
1084         player_sides[ENGLAND_2] = ALLIED;
1085         player_sides[JAPAN_2] = NEUTRAL;
1086         player_sides[GERMAN_3] = NEUTRAL;
1087         player_sides[FINLAND_3] = ENEMY;
1088         player_sides[ENGLAND_3] = ALLIED;
1089         player_sides[JAPAN_3] = NEUTRAL;
1090 
1091         number_of_planes[GERMAN_1] = 0;
1092         number_of_planes[FINLAND_1] = 0;
1093         number_of_planes[ENGLAND_1] = 1;
1094         number_of_planes[JAPAN_1] = 0;
1095         number_of_planes[GERMAN_2] = 0;
1096         number_of_planes[FINLAND_2] = 0;
1097         number_of_planes[ENGLAND_2] = 0;
1098         number_of_planes[JAPAN_2] = 0;
1099         number_of_planes[GERMAN_3] = 0;
1100         number_of_planes[FINLAND_3] = 0;
1101         number_of_planes[ENGLAND_3] = 0;
1102         number_of_planes[JAPAN_3] = 0;
1103 
1104         miss_plane_direction[GERMAN_1] = 0;
1105         miss_plane_direction[FINLAND_1] = 0;
1106         miss_plane_direction[ENGLAND_1] = 0;
1107         miss_plane_direction[JAPAN_1] = 0;
1108         miss_plane_direction[GERMAN_2] = 0;
1109         miss_plane_direction[FINLAND_2] = 0;
1110         miss_plane_direction[ENGLAND_2] = 0;
1111         miss_plane_direction[JAPAN_2] = 0;
1112         miss_plane_direction[GERMAN_3] = 0;
1113         miss_plane_direction[FINLAND_3] = 0;
1114         miss_plane_direction[ENGLAND_3] = 0;
1115         miss_plane_direction[JAPAN_3] = 0;
1116 
1117         miss_pl_x[GERMAN_1] = 0;
1118         miss_pl_x[FINLAND_1] = 0;
1119         miss_pl_x[ENGLAND_1] = 0;
1120         miss_pl_x[JAPAN_1] = 0;
1121         miss_pl_x[GERMAN_2] = 0;
1122         miss_pl_x[FINLAND_2] = 0;
1123         miss_pl_x[ENGLAND_2] = 0;
1124         miss_pl_x[JAPAN_2] = 0;
1125         miss_pl_x[GERMAN_3] = 0;
1126         miss_pl_x[FINLAND_3] = 0;
1127         miss_pl_x[ENGLAND_3] = 0;
1128         miss_pl_x[JAPAN_3] = 0;
1129 
1130         miss_pl_y[GERMAN_1] = 0;
1131         miss_pl_y[FINLAND_1] = 0;
1132         miss_pl_y[ENGLAND_1] = 0;
1133         miss_pl_y[JAPAN_1] = 0;
1134         miss_pl_y[GERMAN_2] = 0;
1135         miss_pl_y[FINLAND_2] = 0;
1136         miss_pl_y[ENGLAND_2] = 0;
1137         miss_pl_y[JAPAN_2] = 0;
1138         miss_pl_y[GERMAN_3] = 0;
1139         miss_pl_y[FINLAND_3] = 0;
1140         miss_pl_y[ENGLAND_3] = 0;
1141         miss_pl_y[JAPAN_3] = 0;
1142 
1143         fighter[GERMAN_1] = PLANE;
1144         fighter[FINLAND_1] = PLANE;
1145         fighter[ENGLAND_1] = PLANE;
1146         fighter[JAPAN_1] = PLANE;
1147         fighter[GERMAN_2] = PLANE;
1148         fighter[FINLAND_2] = PLANE;
1149         fighter[ENGLAND_2] = PLANE;
1150         fighter[JAPAN_2] = PLANE;
1151         fighter[GERMAN_3] = PLANE;
1152         fighter[FINLAND_3] = PLANE;
1153         fighter[ENGLAND_3] = PLANE;
1154         fighter[JAPAN_3] = PLANE;
1155         break;
1156         //Patriot Flight
1157     case 1:
1158         player_sides[GERMAN_1] = NEUTRAL;
1159         player_sides[FINLAND_1] = NEUTRAL;
1160         player_sides[ENGLAND_1] = ALLIED;
1161         player_sides[JAPAN_1] = ENEMY;
1162         player_sides[GERMAN_2] = NEUTRAL;
1163         player_sides[FINLAND_2] = NEUTRAL;
1164         player_sides[ENGLAND_2] = ALLIED;
1165         player_sides[JAPAN_2] = ENEMY;
1166         player_sides[GERMAN_3] = NEUTRAL;
1167         player_sides[FINLAND_3] = NEUTRAL;
1168         player_sides[ENGLAND_3] = ALLIED;
1169         player_sides[JAPAN_3] = ENEMY;
1170 
1171         number_of_planes[GERMAN_1] = 0;
1172         number_of_planes[FINLAND_1] = 0;
1173         number_of_planes[ENGLAND_1] = 1;
1174         number_of_planes[JAPAN_1] = 0;
1175         number_of_planes[GERMAN_2] = 0;
1176         number_of_planes[FINLAND_2] = 0;
1177         number_of_planes[ENGLAND_2] = 0;
1178         number_of_planes[JAPAN_2] = 0;
1179         number_of_planes[GERMAN_3] = 0;
1180         number_of_planes[FINLAND_3] = 0;
1181         number_of_planes[ENGLAND_3] = 0;
1182         number_of_planes[JAPAN_3] = 0;
1183 
1184         miss_plane_direction[GERMAN_1] = 0;
1185         miss_plane_direction[FINLAND_1] = 0;
1186         miss_plane_direction[ENGLAND_1] = LEFT;
1187         miss_plane_direction[JAPAN_1] = 0;
1188         miss_plane_direction[GERMAN_2] = 0;
1189         miss_plane_direction[FINLAND_2] = 0;
1190         miss_plane_direction[ENGLAND_2] = 0;
1191         miss_plane_direction[JAPAN_2] = 0;
1192         miss_plane_direction[GERMAN_3] = 0;
1193         miss_plane_direction[FINLAND_3] = 0;
1194         miss_plane_direction[ENGLAND_3] = 0;
1195         miss_plane_direction[JAPAN_3] = 0;
1196 
1197         miss_pl_x[GERMAN_1] = 0;
1198         miss_pl_x[FINLAND_1] = 0;
1199         miss_pl_x[ENGLAND_1] = 2333;
1200         miss_pl_x[JAPAN_1] = 0;
1201         miss_pl_x[GERMAN_2] = 0;
1202         miss_pl_x[FINLAND_2] = 0;
1203         miss_pl_x[ENGLAND_2] = 0;
1204         miss_pl_x[JAPAN_2] = 0;
1205         miss_pl_x[GERMAN_3] = 0;
1206         miss_pl_x[FINLAND_3] = 0;
1207         miss_pl_x[ENGLAND_3] = 0;
1208         miss_pl_x[JAPAN_3] = 0;
1209 
1210         miss_pl_y[GERMAN_1] = 0;
1211         miss_pl_y[FINLAND_1] = 0;
1212         miss_pl_y[ENGLAND_1] = 15;
1213         miss_pl_y[JAPAN_1] = 0;
1214         miss_pl_y[GERMAN_2] = 0;
1215         miss_pl_y[FINLAND_2] = 0;
1216         miss_pl_y[ENGLAND_2] = 0;
1217         miss_pl_y[JAPAN_2] = 0;
1218         miss_pl_y[GERMAN_3] = 0;
1219         miss_pl_y[FINLAND_3] = 0;
1220         miss_pl_y[ENGLAND_3] = 0;
1221         miss_pl_y[JAPAN_3] = 0;
1222 
1223         fighter[GERMAN_1] = PLANE;
1224         fighter[FINLAND_1] = PLANE;
1225         fighter[ENGLAND_1] = FIGHTER;
1226         fighter[JAPAN_1] = PLANE;
1227         fighter[GERMAN_2] = PLANE;
1228         fighter[FINLAND_2] = PLANE;
1229         fighter[ENGLAND_2] = PLANE;
1230         fighter[JAPAN_2] = PLANE;
1231         fighter[GERMAN_3] = PLANE;
1232         fighter[FINLAND_3] = PLANE;
1233         fighter[ENGLAND_3] = PLANE;
1234         fighter[JAPAN_3] = PLANE;
1235         break;
1236         //Bombing raid
1237     case 2:
1238         player_sides[GERMAN_1] = NEUTRAL;
1239         player_sides[FINLAND_1] = NEUTRAL;
1240         player_sides[ENGLAND_1] = ALLIED;
1241         player_sides[JAPAN_1] = ENEMY;
1242         player_sides[GERMAN_2] = NEUTRAL;
1243         player_sides[FINLAND_2] = NEUTRAL;
1244         player_sides[ENGLAND_2] = ALLIED;
1245         player_sides[JAPAN_2] = ENEMY;
1246         player_sides[GERMAN_3] = NEUTRAL;
1247         player_sides[FINLAND_3] = NEUTRAL;
1248         player_sides[ENGLAND_3] = ALLIED;
1249         player_sides[JAPAN_3] = ENEMY;
1250 
1251         number_of_planes[GERMAN_1] = 0;
1252         number_of_planes[FINLAND_1] = 0;
1253         number_of_planes[ENGLAND_1] = 3;
1254         number_of_planes[JAPAN_1] = 5;
1255         number_of_planes[GERMAN_2] = 0;
1256         number_of_planes[FINLAND_2] = 0;
1257         number_of_planes[ENGLAND_2] = 2;
1258         number_of_planes[JAPAN_2] = 5;
1259         number_of_planes[GERMAN_3] = 0;
1260         number_of_planes[FINLAND_3] = 0;
1261         number_of_planes[ENGLAND_3] = 2;
1262         number_of_planes[JAPAN_3] = 0;
1263 
1264         miss_plane_direction[GERMAN_1] = 0;
1265         miss_plane_direction[FINLAND_1] = 0;
1266         miss_plane_direction[ENGLAND_1] = 0;
1267         miss_plane_direction[JAPAN_1] = 0;
1268         miss_plane_direction[GERMAN_2] = 0;
1269         miss_plane_direction[FINLAND_2] = 0;
1270         miss_plane_direction[ENGLAND_2] = 0;
1271         miss_plane_direction[JAPAN_2] = 0;
1272         miss_plane_direction[GERMAN_3] = 0;
1273         miss_plane_direction[FINLAND_3] = 0;
1274         miss_plane_direction[ENGLAND_3] = 0;
1275         miss_plane_direction[JAPAN_3] = 0;
1276 
1277         miss_pl_x[GERMAN_1] = 0;
1278         miss_pl_x[FINLAND_1] = 0;
1279         miss_pl_x[ENGLAND_1] = 0;
1280         miss_pl_x[JAPAN_1] = 0;
1281         miss_pl_x[GERMAN_2] = 0;
1282         miss_pl_x[FINLAND_2] = 0;
1283         miss_pl_x[ENGLAND_2] = 0;
1284         miss_pl_x[JAPAN_2] = 0;
1285         miss_pl_x[GERMAN_3] = 0;
1286         miss_pl_x[FINLAND_3] = 0;
1287         miss_pl_x[ENGLAND_3] = 0;
1288         miss_pl_x[JAPAN_3] = 0;
1289 
1290         miss_pl_y[GERMAN_1] = 0;
1291         miss_pl_y[FINLAND_1] = 0;
1292         miss_pl_y[ENGLAND_1] = 0;
1293         miss_pl_y[JAPAN_1] = 0;
1294         miss_pl_y[GERMAN_2] = 0;
1295         miss_pl_y[FINLAND_2] = 0;
1296         miss_pl_y[ENGLAND_2] = 0;
1297         miss_pl_y[JAPAN_2] = 0;
1298         miss_pl_y[GERMAN_3] = 0;
1299         miss_pl_y[FINLAND_3] = 0;
1300         miss_pl_y[ENGLAND_3] = 0;
1301         miss_pl_y[JAPAN_3] = 0;
1302 
1303         fighter[GERMAN_1] = PLANE;
1304         fighter[FINLAND_1] = PLANE;
1305         fighter[ENGLAND_1] = PLANE;
1306         fighter[JAPAN_1] = PLANE;
1307         fighter[GERMAN_2] = PLANE;
1308         fighter[FINLAND_2] = PLANE;
1309         fighter[ENGLAND_2] = PLANE;
1310         fighter[JAPAN_2] = PLANE;
1311         fighter[GERMAN_3] = PLANE;
1312         fighter[FINLAND_3] = PLANE;
1313         fighter[ENGLAND_3] = PLANE;
1314         fighter[JAPAN_3] = PLANE;
1315         break;
1316         //Radio interference
1317     case 3:
1318         player_sides[GERMAN_1] = ALLIED;
1319         player_sides[FINLAND_1] = NEUTRAL;
1320         player_sides[ENGLAND_1] = ALLIED;
1321         player_sides[JAPAN_1] = ENEMY;
1322         player_sides[GERMAN_2] = ALLIED;
1323         player_sides[FINLAND_2] = NEUTRAL;
1324         player_sides[ENGLAND_2] = ALLIED;
1325         player_sides[JAPAN_2] = ENEMY;
1326         player_sides[GERMAN_3] = ALLIED;
1327         player_sides[FINLAND_3] = NEUTRAL;
1328         player_sides[ENGLAND_3] = ALLIED;
1329         player_sides[JAPAN_3] = ENEMY;
1330 
1331         number_of_planes[GERMAN_1] = 1;
1332         number_of_planes[FINLAND_1] = 0;
1333         number_of_planes[ENGLAND_1] = 1;
1334         number_of_planes[JAPAN_1] = 1;
1335         number_of_planes[GERMAN_2] = 0;
1336         number_of_planes[FINLAND_2] = 0;
1337         number_of_planes[ENGLAND_2] = 0;
1338         number_of_planes[JAPAN_2] = 0;
1339         number_of_planes[GERMAN_3] = 0;
1340         number_of_planes[FINLAND_3] = 0;
1341         number_of_planes[ENGLAND_3] = 0;
1342         number_of_planes[JAPAN_3] = 0;
1343 
1344         miss_plane_direction[GERMAN_1] = 0;
1345         miss_plane_direction[FINLAND_1] = 0;
1346         miss_plane_direction[ENGLAND_1] = 0;
1347         miss_plane_direction[JAPAN_1] = 0;
1348         miss_plane_direction[GERMAN_2] = 0;
1349         miss_plane_direction[FINLAND_2] = 0;
1350         miss_plane_direction[ENGLAND_2] = 0;
1351         miss_plane_direction[JAPAN_2] = 0;
1352         miss_plane_direction[GERMAN_3] = 0;
1353         miss_plane_direction[FINLAND_3] = 0;
1354         miss_plane_direction[ENGLAND_3] = 0;
1355         miss_plane_direction[JAPAN_3] = 0;
1356 
1357         miss_pl_x[GERMAN_1] = 0;
1358         miss_pl_x[FINLAND_1] = 0;
1359         miss_pl_x[ENGLAND_1] = 0;
1360         miss_pl_x[JAPAN_1] = 2300;
1361         miss_pl_x[GERMAN_2] = 0;
1362         miss_pl_x[FINLAND_2] = 0;
1363         miss_pl_x[ENGLAND_2] = 0;
1364         miss_pl_x[JAPAN_2] = 0;
1365         miss_pl_x[GERMAN_3] = 0;
1366         miss_pl_x[FINLAND_3] = 0;
1367         miss_pl_x[ENGLAND_3] = 0;
1368         miss_pl_x[JAPAN_3] = 0;
1369 
1370         miss_pl_y[GERMAN_1] = 0;
1371         miss_pl_y[FINLAND_1] = 0;
1372         miss_pl_y[ENGLAND_1] = 0;
1373         miss_pl_y[JAPAN_1] = 10;
1374         miss_pl_y[GERMAN_2] = 0;
1375         miss_pl_y[FINLAND_2] = 0;
1376         miss_pl_y[ENGLAND_2] = 0;
1377         miss_pl_y[JAPAN_2] = 0;
1378         miss_pl_y[GERMAN_3] = 0;
1379         miss_pl_y[FINLAND_3] = 0;
1380         miss_pl_y[ENGLAND_3] = 0;
1381         miss_pl_y[JAPAN_3] = 0;
1382 
1383         fighter[GERMAN_1] = PLANE;
1384         fighter[FINLAND_1] = PLANE;
1385         fighter[ENGLAND_1] = PLANE;
1386         fighter[JAPAN_1] = FIGHTER;
1387         fighter[GERMAN_2] = PLANE;
1388         fighter[FINLAND_2] = PLANE;
1389         fighter[ENGLAND_2] = PLANE;
1390         fighter[JAPAN_2] = FIGHTER;
1391         fighter[GERMAN_3] = PLANE;
1392         fighter[FINLAND_3] = PLANE;
1393         fighter[ENGLAND_3] = PLANE;
1394         fighter[JAPAN_3] = FIGHTER;
1395         break;
1396         //Canal tunnel
1397     case 4:
1398         player_sides[GERMAN_1] = ENEMY;
1399         player_sides[FINLAND_1] = ENEMY;
1400         player_sides[ENGLAND_1] = ALLIED;
1401         player_sides[JAPAN_1] = ENEMY;
1402         player_sides[GERMAN_2] = ENEMY;
1403         player_sides[FINLAND_2] = ENEMY;
1404         player_sides[ENGLAND_2] = ALLIED;
1405         player_sides[JAPAN_2] = ENEMY;
1406         player_sides[GERMAN_3] = ENEMY;
1407         player_sides[FINLAND_3] = ENEMY;
1408         player_sides[ENGLAND_3] = ALLIED;
1409         player_sides[JAPAN_3] = ENEMY;
1410 
1411         number_of_planes[GERMAN_1] = 1;
1412         number_of_planes[FINLAND_1] = 1;
1413         number_of_planes[ENGLAND_1] = 2;
1414         number_of_planes[JAPAN_1] = 1;
1415         number_of_planes[GERMAN_2] = 0;
1416         number_of_planes[FINLAND_2] = 0;
1417         number_of_planes[ENGLAND_2] = 1;
1418         number_of_planes[JAPAN_2] = 0;
1419         number_of_planes[GERMAN_3] = 0;
1420         number_of_planes[FINLAND_3] = 0;
1421         number_of_planes[ENGLAND_3] = 1;
1422         number_of_planes[JAPAN_3] = 0;
1423 
1424         miss_plane_direction[GERMAN_1] = 0;
1425         miss_plane_direction[FINLAND_1] = 0;
1426         miss_plane_direction[ENGLAND_1] = 0;
1427         miss_plane_direction[JAPAN_1] = 0;
1428         miss_plane_direction[GERMAN_2] = 0;
1429         miss_plane_direction[FINLAND_2] = 0;
1430         miss_plane_direction[ENGLAND_2] = 0;
1431         miss_plane_direction[JAPAN_2] = 0;
1432         miss_plane_direction[GERMAN_3] = 0;
1433         miss_plane_direction[FINLAND_3] = 0;
1434         miss_plane_direction[ENGLAND_3] = 0;
1435         miss_plane_direction[JAPAN_3] = 0;
1436 
1437         miss_pl_x[GERMAN_1] = 2300;
1438         miss_pl_x[FINLAND_1] = 2100;
1439         miss_pl_x[ENGLAND_1] = 0;
1440         miss_pl_x[JAPAN_1] = 2200;
1441         miss_pl_x[GERMAN_2] = 0;
1442         miss_pl_x[FINLAND_2] = 0;
1443         miss_pl_x[ENGLAND_2] = 0;
1444         miss_pl_x[JAPAN_2] = 0;
1445         miss_pl_x[GERMAN_3] = 0;
1446         miss_pl_x[FINLAND_3] = 0;
1447         miss_pl_x[ENGLAND_3] = 0;
1448         miss_pl_x[JAPAN_3] = 0;
1449 
1450         miss_pl_y[GERMAN_1] = 10;
1451         miss_pl_y[FINLAND_1] = 50;
1452         miss_pl_y[ENGLAND_1] = 0;
1453         miss_pl_y[JAPAN_1] = 30;
1454         miss_pl_y[GERMAN_2] = 0;
1455         miss_pl_y[FINLAND_2] = 0;
1456         miss_pl_y[ENGLAND_2] = 0;
1457         miss_pl_y[JAPAN_2] = 0;
1458         miss_pl_y[GERMAN_3] = 0;
1459         miss_pl_y[FINLAND_3] = 0;
1460         miss_pl_y[ENGLAND_3] = 0;
1461         miss_pl_y[JAPAN_3] = 0;
1462 
1463         fighter[GERMAN_1] = FIGHTER;
1464         fighter[FINLAND_1] = FIGHTER;
1465         fighter[ENGLAND_1] = PLANE;
1466         fighter[JAPAN_1] = FIGHTER;
1467         fighter[GERMAN_2] = PLANE;
1468         fighter[FINLAND_2] = PLANE;
1469         fighter[ENGLAND_2] = FIGHTER;
1470         fighter[JAPAN_2] = PLANE;
1471         fighter[GERMAN_3] = PLANE;
1472         fighter[FINLAND_3] = PLANE;
1473         fighter[ENGLAND_3] = BOMBER;
1474         fighter[JAPAN_3] = PLANE;
1475         break;
1476         //Carrier command
1477     case 5:
1478         player_sides[GERMAN_1] = ENEMY;
1479         player_sides[FINLAND_1] = ENEMY;
1480         player_sides[ENGLAND_1] = ALLIED;
1481         player_sides[JAPAN_1] = ENEMY;
1482         player_sides[GERMAN_2] = ENEMY;
1483         player_sides[FINLAND_2] = ENEMY;
1484         player_sides[ENGLAND_2] = ALLIED;
1485         player_sides[JAPAN_2] = ENEMY;
1486         player_sides[GERMAN_3] = ENEMY;
1487         player_sides[FINLAND_3] = ENEMY;
1488         player_sides[ENGLAND_3] = ALLIED;
1489         player_sides[JAPAN_3] = ENEMY;
1490 
1491         number_of_planes[GERMAN_1] = 3;
1492         number_of_planes[FINLAND_1] = 3;
1493         number_of_planes[ENGLAND_1] = 7;
1494         number_of_planes[JAPAN_1] = 3;
1495         number_of_planes[GERMAN_2] = 3;
1496         number_of_planes[FINLAND_2] = 3;
1497         number_of_planes[ENGLAND_2] = 6;
1498         number_of_planes[JAPAN_2] = 3;
1499         number_of_planes[GERMAN_3] = 3;
1500         number_of_planes[FINLAND_3] = 3;
1501         number_of_planes[ENGLAND_3] = 6;
1502         number_of_planes[JAPAN_3] = 3;
1503 
1504         miss_plane_direction[GERMAN_1] = 0;
1505         miss_plane_direction[FINLAND_1] = 0;
1506         miss_plane_direction[ENGLAND_1] = 0;
1507         miss_plane_direction[JAPAN_1] = 0;
1508         miss_plane_direction[GERMAN_2] = 0;
1509         miss_plane_direction[FINLAND_2] = 0;
1510         miss_plane_direction[ENGLAND_2] = 0;
1511         miss_plane_direction[JAPAN_2] = 0;
1512         miss_plane_direction[GERMAN_3] = 0;
1513         miss_plane_direction[FINLAND_3] = 0;
1514         miss_plane_direction[ENGLAND_3] = 0;
1515         miss_plane_direction[JAPAN_3] = 0;
1516 
1517         miss_pl_x[GERMAN_1] = 0;
1518         miss_pl_x[FINLAND_1] = 0;
1519         miss_pl_x[ENGLAND_1] = 0;
1520         miss_pl_x[JAPAN_1] = 0;
1521         miss_pl_x[GERMAN_2] = 0;
1522         miss_pl_x[FINLAND_2] = 0;
1523         miss_pl_x[ENGLAND_2] = 0;
1524         miss_pl_x[JAPAN_2] = 0;
1525         miss_pl_x[GERMAN_3] = 0;
1526         miss_pl_x[FINLAND_3] = 0;
1527         miss_pl_x[ENGLAND_3] = 0;
1528         miss_pl_x[JAPAN_3] = 0;
1529 
1530         miss_pl_y[GERMAN_1] = 0;
1531         miss_pl_y[FINLAND_1] = 0;
1532         miss_pl_y[ENGLAND_1] = 0;
1533         miss_pl_y[JAPAN_1] = 0;
1534         miss_pl_y[GERMAN_2] = 0;
1535         miss_pl_y[FINLAND_2] = 0;
1536         miss_pl_y[ENGLAND_2] = 0;
1537         miss_pl_y[JAPAN_2] = 0;
1538         miss_pl_y[GERMAN_3] = 0;
1539         miss_pl_y[FINLAND_3] = 0;
1540         miss_pl_y[ENGLAND_3] = 0;
1541         miss_pl_y[JAPAN_3] = 0;
1542 
1543         fighter[GERMAN_1] = FIGHTER;
1544         fighter[FINLAND_1] = FIGHTER;
1545         fighter[ENGLAND_1] = FIGHTER;
1546         fighter[JAPAN_1] = FIGHTER;
1547         fighter[GERMAN_2] = FIGHTER;
1548         fighter[FINLAND_2] = FIGHTER;
1549         fighter[ENGLAND_2] = FIGHTER;
1550         fighter[JAPAN_2] = FIGHTER;
1551         fighter[GERMAN_3] = FIGHTER;
1552         fighter[FINLAND_3] = FIGHTER;
1553         fighter[ENGLAND_3] = FIGHTER;
1554         fighter[JAPAN_3] = FIGHTER;
1555         break;
1556 
1557 
1558     }
1559 
1560 }
1561 
init_japan(int number)1562 void init_japan(int number) {
1563     switch (number) {
1564         //Tactical bombardment
1565     case 0:
1566         player_sides[GERMAN_1] = NEUTRAL;
1567         player_sides[FINLAND_1] = ENEMY;
1568         player_sides[ENGLAND_1] = NEUTRAL;
1569         player_sides[JAPAN_1] = ALLIED;
1570         player_sides[GERMAN_2] = NEUTRAL;
1571         player_sides[FINLAND_2] = ENEMY;
1572         player_sides[ENGLAND_2] = NEUTRAL;
1573         player_sides[JAPAN_2] = ALLIED;
1574         player_sides[GERMAN_3] = NEUTRAL;
1575         player_sides[FINLAND_3] = ENEMY;
1576         player_sides[ENGLAND_3] = NEUTRAL;
1577         player_sides[JAPAN_3] = ALLIED;
1578 
1579         number_of_planes[GERMAN_1] = 0;
1580         number_of_planes[FINLAND_1] = 0;
1581         number_of_planes[ENGLAND_1] = 0;
1582         number_of_planes[JAPAN_1] = 1;
1583         number_of_planes[GERMAN_2] = 0;
1584         number_of_planes[FINLAND_2] = 0;
1585         number_of_planes[ENGLAND_2] = 0;
1586         number_of_planes[JAPAN_2] = 0;
1587         number_of_planes[GERMAN_3] = 0;
1588         number_of_planes[FINLAND_3] = 0;
1589         number_of_planes[ENGLAND_3] = 0;
1590         number_of_planes[JAPAN_3] = 0;
1591 
1592         miss_plane_direction[GERMAN_1] = 0;
1593         miss_plane_direction[FINLAND_1] = 0;
1594         miss_plane_direction[ENGLAND_1] = 0;
1595         miss_plane_direction[JAPAN_1] = 0;
1596         miss_plane_direction[GERMAN_2] = 0;
1597         miss_plane_direction[FINLAND_2] = 0;
1598         miss_plane_direction[ENGLAND_2] = 0;
1599         miss_plane_direction[JAPAN_2] = 0;
1600         miss_plane_direction[GERMAN_3] = 0;
1601         miss_plane_direction[FINLAND_3] = 0;
1602         miss_plane_direction[ENGLAND_3] = 0;
1603         miss_plane_direction[JAPAN_3] = 0;
1604 
1605         miss_pl_x[GERMAN_1] = 0;
1606         miss_pl_x[FINLAND_1] = 0;
1607         miss_pl_x[ENGLAND_1] = 0;
1608         miss_pl_x[JAPAN_1] = 0;
1609         miss_pl_x[GERMAN_2] = 0;
1610         miss_pl_x[FINLAND_2] = 0;
1611         miss_pl_x[ENGLAND_2] = 0;
1612         miss_pl_x[JAPAN_2] = 0;
1613         miss_pl_x[GERMAN_3] = 0;
1614         miss_pl_x[FINLAND_3] = 0;
1615         miss_pl_x[ENGLAND_3] = 0;
1616         miss_pl_x[JAPAN_3] = 0;
1617 
1618         miss_pl_y[GERMAN_1] = 0;
1619         miss_pl_y[FINLAND_1] = 0;
1620         miss_pl_y[ENGLAND_1] = 0;
1621         miss_pl_y[JAPAN_1] = 0;
1622         miss_pl_y[GERMAN_2] = 0;
1623         miss_pl_y[FINLAND_2] = 0;
1624         miss_pl_y[ENGLAND_2] = 0;
1625         miss_pl_y[JAPAN_2] = 0;
1626         miss_pl_y[GERMAN_3] = 0;
1627         miss_pl_y[FINLAND_3] = 0;
1628         miss_pl_y[ENGLAND_3] = 0;
1629         miss_pl_y[JAPAN_3] = 0;
1630 
1631         fighter[GERMAN_1] = PLANE;
1632         fighter[FINLAND_1] = PLANE;
1633         fighter[ENGLAND_1] = PLANE;
1634         fighter[JAPAN_1] = PLANE;
1635         fighter[GERMAN_2] = PLANE;
1636         fighter[FINLAND_2] = PLANE;
1637         fighter[ENGLAND_2] = PLANE;
1638         fighter[JAPAN_2] = PLANE;
1639         fighter[GERMAN_3] = PLANE;
1640         fighter[FINLAND_3] = PLANE;
1641         fighter[ENGLAND_3] = PLANE;
1642         fighter[JAPAN_3] = PLANE;
1643         break;
1644         //Finnish outpost
1645     case 1:
1646         player_sides[GERMAN_1] = ENEMY;
1647         player_sides[FINLAND_1] = ENEMY;
1648         player_sides[ENGLAND_1] = NEUTRAL;
1649         player_sides[JAPAN_1] = ALLIED;
1650         player_sides[GERMAN_2] = ENEMY;
1651         player_sides[FINLAND_2] = ENEMY;
1652         player_sides[ENGLAND_2] = NEUTRAL;
1653         player_sides[JAPAN_2] = ALLIED;
1654         player_sides[GERMAN_3] = ENEMY;
1655         player_sides[FINLAND_3] = ENEMY;
1656         player_sides[ENGLAND_3] = NEUTRAL;
1657         player_sides[JAPAN_3] = ALLIED;
1658 
1659         number_of_planes[GERMAN_1] = 3;
1660         number_of_planes[FINLAND_1] = 0;
1661         number_of_planes[ENGLAND_1] = 0;
1662         number_of_planes[JAPAN_1] = 3;
1663         number_of_planes[GERMAN_2] = 3;
1664         number_of_planes[FINLAND_2] = 0;
1665         number_of_planes[ENGLAND_2] = 0;
1666         number_of_planes[JAPAN_2] = 3;
1667         number_of_planes[GERMAN_3] = 3;
1668         number_of_planes[FINLAND_3] = 0;
1669         number_of_planes[ENGLAND_3] = 0;
1670         number_of_planes[JAPAN_3] = 3;
1671 
1672         miss_plane_direction[GERMAN_1] = 0;
1673         miss_plane_direction[FINLAND_1] = 0;
1674         miss_plane_direction[ENGLAND_1] = 0;
1675         miss_plane_direction[JAPAN_1] = 0;
1676         miss_plane_direction[GERMAN_2] = 0;
1677         miss_plane_direction[FINLAND_2] = 0;
1678         miss_plane_direction[ENGLAND_2] = 0;
1679         miss_plane_direction[JAPAN_2] = 0;
1680         miss_plane_direction[GERMAN_3] = 0;
1681         miss_plane_direction[FINLAND_3] = 0;
1682         miss_plane_direction[ENGLAND_3] = 0;
1683         miss_plane_direction[JAPAN_3] = 0;
1684 
1685         miss_pl_x[GERMAN_1] = 0;
1686         miss_pl_x[FINLAND_1] = 0;
1687         miss_pl_x[ENGLAND_1] = 0;
1688         miss_pl_x[JAPAN_1] = 0;
1689         miss_pl_x[GERMAN_2] = 0;
1690         miss_pl_x[FINLAND_2] = 0;
1691         miss_pl_x[ENGLAND_2] = 0;
1692         miss_pl_x[JAPAN_2] = 0;
1693         miss_pl_x[GERMAN_3] = 0;
1694         miss_pl_x[FINLAND_3] = 0;
1695         miss_pl_x[ENGLAND_3] = 0;
1696         miss_pl_x[JAPAN_3] = 0;
1697 
1698         miss_pl_y[GERMAN_1] = 0;
1699         miss_pl_y[FINLAND_1] = 0;
1700         miss_pl_y[ENGLAND_1] = 0;
1701         miss_pl_y[JAPAN_1] = 0;
1702         miss_pl_y[GERMAN_2] = 0;
1703         miss_pl_y[FINLAND_2] = 0;
1704         miss_pl_y[ENGLAND_2] = 0;
1705         miss_pl_y[JAPAN_2] = 0;
1706         miss_pl_y[GERMAN_3] = 0;
1707         miss_pl_y[FINLAND_3] = 0;
1708         miss_pl_y[ENGLAND_3] = 0;
1709         miss_pl_y[JAPAN_3] = 0;
1710 
1711         fighter[GERMAN_1] = PLANE;
1712         fighter[FINLAND_1] = PLANE;
1713         fighter[ENGLAND_1] = PLANE;
1714         fighter[JAPAN_1] = PLANE;
1715         fighter[GERMAN_2] = FIGHTER;
1716         fighter[FINLAND_2] = FIGHTER;
1717         fighter[ENGLAND_2] = FIGHTER;
1718         fighter[JAPAN_2] = FIGHTER;
1719         fighter[GERMAN_3] = BOMBER;
1720         fighter[FINLAND_3] = BOMBER;
1721         fighter[ENGLAND_3] = BOMBER;
1722         fighter[JAPAN_3] = BOMBER;
1723         break;
1724         //Ransom
1725     case 2:
1726         player_sides[GERMAN_1] = ENEMY;
1727         player_sides[FINLAND_1] = NEUTRAL;
1728         player_sides[ENGLAND_1] = NEUTRAL;
1729         player_sides[JAPAN_1] = ALLIED;
1730         player_sides[GERMAN_2] = ENEMY;
1731         player_sides[FINLAND_2] = NEUTRAL;
1732         player_sides[ENGLAND_2] = NEUTRAL;
1733         player_sides[JAPAN_2] = ALLIED;
1734         player_sides[GERMAN_3] = ENEMY;
1735         player_sides[FINLAND_3] = NEUTRAL;
1736         player_sides[ENGLAND_3] = NEUTRAL;
1737         player_sides[JAPAN_3] = ALLIED;
1738 
1739         number_of_planes[GERMAN_1] = 0;
1740         number_of_planes[FINLAND_1] = 0;
1741         number_of_planes[ENGLAND_1] = 0;
1742         number_of_planes[JAPAN_1] = 2;
1743         number_of_planes[GERMAN_2] = 0;
1744         number_of_planes[FINLAND_2] = 0;
1745         number_of_planes[ENGLAND_2] = 0;
1746         number_of_planes[JAPAN_2] = 0;
1747         number_of_planes[GERMAN_3] = 0;
1748         number_of_planes[FINLAND_3] = 0;
1749         number_of_planes[ENGLAND_3] = 0;
1750         number_of_planes[JAPAN_3] = 0;
1751 
1752         miss_plane_direction[GERMAN_1] = 0;
1753         miss_plane_direction[FINLAND_1] = 0;
1754         miss_plane_direction[ENGLAND_1] = 0;
1755         miss_plane_direction[JAPAN_1] = 0;
1756         miss_plane_direction[GERMAN_2] = 0;
1757         miss_plane_direction[FINLAND_2] = 0;
1758         miss_plane_direction[ENGLAND_2] = 0;
1759         miss_plane_direction[JAPAN_2] = 0;
1760         miss_plane_direction[GERMAN_3] = 0;
1761         miss_plane_direction[FINLAND_3] = 0;
1762         miss_plane_direction[ENGLAND_3] = 0;
1763         miss_plane_direction[JAPAN_3] = 0;
1764 
1765         miss_pl_x[GERMAN_1] = 0;
1766         miss_pl_x[FINLAND_1] = 0;
1767         miss_pl_x[ENGLAND_1] = 0;
1768         miss_pl_x[JAPAN_1] = 0;
1769         miss_pl_x[GERMAN_2] = 0;
1770         miss_pl_x[FINLAND_2] = 0;
1771         miss_pl_x[ENGLAND_2] = 0;
1772         miss_pl_x[JAPAN_2] = 0;
1773         miss_pl_x[GERMAN_3] = 0;
1774         miss_pl_x[FINLAND_3] = 0;
1775         miss_pl_x[ENGLAND_3] = 0;
1776         miss_pl_x[JAPAN_3] = 0;
1777 
1778         miss_pl_y[GERMAN_1] = 0;
1779         miss_pl_y[FINLAND_1] = 0;
1780         miss_pl_y[ENGLAND_1] = 0;
1781         miss_pl_y[JAPAN_1] = 0;
1782         miss_pl_y[GERMAN_2] = 0;
1783         miss_pl_y[FINLAND_2] = 0;
1784         miss_pl_y[ENGLAND_2] = 0;
1785         miss_pl_y[JAPAN_2] = 0;
1786         miss_pl_y[GERMAN_3] = 0;
1787         miss_pl_y[FINLAND_3] = 0;
1788         miss_pl_y[ENGLAND_3] = 0;
1789         miss_pl_y[JAPAN_3] = 0;
1790 
1791         fighter[GERMAN_1] = PLANE;
1792         fighter[FINLAND_1] = PLANE;
1793         fighter[ENGLAND_1] = PLANE;
1794         fighter[JAPAN_1] = PLANE;
1795         fighter[GERMAN_2] = PLANE;
1796         fighter[FINLAND_2] = PLANE;
1797         fighter[ENGLAND_2] = PLANE;
1798         fighter[JAPAN_2] = PLANE;
1799         fighter[GERMAN_3] = PLANE;
1800         fighter[FINLAND_3] = PLANE;
1801         fighter[ENGLAND_3] = PLANE;
1802         fighter[JAPAN_3] = PLANE;
1803         break;
1804         //Harbor Hazard
1805     case 3:
1806         player_sides[GERMAN_1] = ALLIED;
1807         player_sides[FINLAND_1] = ENEMY;
1808         player_sides[ENGLAND_1] = ENEMY;
1809         player_sides[JAPAN_1] = ALLIED;
1810         player_sides[GERMAN_2] = ALLIED;
1811         player_sides[FINLAND_2] = ENEMY;
1812         player_sides[ENGLAND_2] = ENEMY;
1813         player_sides[JAPAN_2] = ALLIED;
1814         player_sides[GERMAN_3] = ALLIED;
1815         player_sides[FINLAND_3] = ENEMY;
1816         player_sides[ENGLAND_3] = ENEMY;
1817         player_sides[JAPAN_3] = ALLIED;
1818 
1819         number_of_planes[GERMAN_1] = 5;
1820         number_of_planes[FINLAND_1] = 1;
1821         number_of_planes[ENGLAND_1] = 5;
1822         number_of_planes[JAPAN_1] = 5;
1823         number_of_planes[GERMAN_2] = 5;
1824         number_of_planes[FINLAND_2] = 1;
1825         number_of_planes[ENGLAND_2] = 5;
1826         number_of_planes[JAPAN_2] = 5;
1827         number_of_planes[GERMAN_3] = 0;
1828         number_of_planes[FINLAND_3] = 1;
1829         number_of_planes[ENGLAND_3] = 0;
1830         number_of_planes[JAPAN_3] = 0;
1831 
1832         miss_plane_direction[GERMAN_1] = 0;
1833         miss_plane_direction[FINLAND_1] = LEFT;
1834         miss_plane_direction[ENGLAND_1] = 0;
1835         miss_plane_direction[JAPAN_1] = 0;
1836         miss_plane_direction[GERMAN_2] = 0;
1837         miss_plane_direction[FINLAND_2] = LEFT;
1838         miss_plane_direction[ENGLAND_2] = 0;
1839         miss_plane_direction[JAPAN_2] = 0;
1840         miss_plane_direction[GERMAN_3] = 0;
1841         miss_plane_direction[FINLAND_3] = LEFT;
1842         miss_plane_direction[ENGLAND_3] = 0;
1843         miss_plane_direction[JAPAN_3] = 0;
1844 
1845         miss_pl_x[GERMAN_1] = 0;
1846         miss_pl_x[FINLAND_1] = 2160;
1847         miss_pl_x[ENGLAND_1] = 0;
1848         miss_pl_x[JAPAN_1] = 0;
1849         miss_pl_x[GERMAN_2] = 0;
1850         miss_pl_x[FINLAND_2] = 2200;
1851         miss_pl_x[ENGLAND_2] = 0;
1852         miss_pl_x[JAPAN_2] = 0;
1853         miss_pl_x[GERMAN_3] = 0;
1854         miss_pl_x[FINLAND_3] = 2240;
1855         miss_pl_x[ENGLAND_3] = 0;
1856         miss_pl_x[JAPAN_3] = 0;
1857 
1858         miss_pl_y[GERMAN_1] = 0;
1859         miss_pl_y[FINLAND_1] = 100;
1860         miss_pl_y[ENGLAND_1] = 0;
1861         miss_pl_y[JAPAN_1] = 0;
1862         miss_pl_y[GERMAN_2] = 0;
1863         miss_pl_y[FINLAND_2] = 130;
1864         miss_pl_y[ENGLAND_2] = 0;
1865         miss_pl_y[JAPAN_2] = 0;
1866         miss_pl_y[GERMAN_3] = 0;
1867         miss_pl_y[FINLAND_3] = 160;
1868         miss_pl_y[ENGLAND_3] = 0;
1869         miss_pl_y[JAPAN_3] = 0;
1870 
1871         fighter[GERMAN_1] = FIGHTER;
1872         fighter[FINLAND_1] = FIGHTER;
1873         fighter[ENGLAND_1] = BOMBER;
1874         fighter[JAPAN_1] = PLANE;
1875         fighter[GERMAN_2] = FIGHTER;
1876         fighter[FINLAND_2] = FIGHTER;
1877         fighter[ENGLAND_2] = FIGHTER;
1878         fighter[JAPAN_2] = PLANE;
1879         fighter[GERMAN_3] = FIGHTER;
1880         fighter[FINLAND_3] = FIGHTER;
1881         fighter[ENGLAND_3] = BOMBER;
1882         fighter[JAPAN_3] = PLANE;
1883         break;
1884         //Sweating sauna
1885     case 4:
1886         player_sides[GERMAN_1] = ENEMY;
1887         player_sides[FINLAND_1] = ENEMY;
1888         player_sides[ENGLAND_1] = ENEMY;
1889         player_sides[JAPAN_1] = ALLIED;
1890         player_sides[GERMAN_2] = ENEMY;
1891         player_sides[FINLAND_2] = ENEMY;
1892         player_sides[ENGLAND_2] = ENEMY;
1893         player_sides[JAPAN_2] = ALLIED;
1894         player_sides[GERMAN_3] = ENEMY;
1895         player_sides[FINLAND_3] = ENEMY;
1896         player_sides[ENGLAND_3] = ENEMY;
1897         player_sides[JAPAN_3] = ALLIED;
1898 
1899         number_of_planes[GERMAN_1] = 0;
1900         number_of_planes[FINLAND_1] = 0;
1901         number_of_planes[ENGLAND_1] = 0;
1902         number_of_planes[JAPAN_1] = 2;
1903         number_of_planes[GERMAN_2] = 0;
1904         number_of_planes[FINLAND_2] = 0;
1905         number_of_planes[ENGLAND_2] = 0;
1906         number_of_planes[JAPAN_2] = 0;
1907         number_of_planes[GERMAN_3] = 0;
1908         number_of_planes[FINLAND_3] = 0;
1909         number_of_planes[ENGLAND_3] = 0;
1910         number_of_planes[JAPAN_3] = 0;
1911 
1912         miss_plane_direction[GERMAN_1] = 0;
1913         miss_plane_direction[FINLAND_1] = 0;
1914         miss_plane_direction[ENGLAND_1] = 0;
1915         miss_plane_direction[JAPAN_1] = 0;
1916         miss_plane_direction[GERMAN_2] = 0;
1917         miss_plane_direction[FINLAND_2] = 0;
1918         miss_plane_direction[ENGLAND_2] = 0;
1919         miss_plane_direction[JAPAN_2] = 0;
1920         miss_plane_direction[GERMAN_3] = 0;
1921         miss_plane_direction[FINLAND_3] = 0;
1922         miss_plane_direction[ENGLAND_3] = 0;
1923         miss_plane_direction[JAPAN_3] = 0;
1924 
1925         miss_pl_x[GERMAN_1] = 0;
1926         miss_pl_x[FINLAND_1] = 0;
1927         miss_pl_x[ENGLAND_1] = 0;
1928         miss_pl_x[JAPAN_1] = 0;
1929         miss_pl_x[GERMAN_2] = 0;
1930         miss_pl_x[FINLAND_2] = 0;
1931         miss_pl_x[ENGLAND_2] = 0;
1932         miss_pl_x[JAPAN_2] = 0;
1933         miss_pl_x[GERMAN_3] = 0;
1934         miss_pl_x[FINLAND_3] = 0;
1935         miss_pl_x[ENGLAND_3] = 0;
1936         miss_pl_x[JAPAN_3] = 0;
1937 
1938         miss_pl_y[GERMAN_1] = 0;
1939         miss_pl_y[FINLAND_1] = 0;
1940         miss_pl_y[ENGLAND_1] = 0;
1941         miss_pl_y[JAPAN_1] = 0;
1942         miss_pl_y[GERMAN_2] = 0;
1943         miss_pl_y[FINLAND_2] = 0;
1944         miss_pl_y[ENGLAND_2] = 0;
1945         miss_pl_y[JAPAN_2] = 0;
1946         miss_pl_y[GERMAN_3] = 0;
1947         miss_pl_y[FINLAND_3] = 0;
1948         miss_pl_y[ENGLAND_3] = 0;
1949         miss_pl_y[JAPAN_3] = 0;
1950 
1951         fighter[GERMAN_1] = PLANE;
1952         fighter[FINLAND_1] = PLANE;
1953         fighter[ENGLAND_1] = PLANE;
1954         fighter[JAPAN_1] = PLANE;
1955         fighter[GERMAN_2] = PLANE;
1956         fighter[FINLAND_2] = PLANE;
1957         fighter[ENGLAND_2] = PLANE;
1958         fighter[JAPAN_2] = PLANE;
1959         fighter[GERMAN_3] = PLANE;
1960         fighter[FINLAND_3] = PLANE;
1961         fighter[ENGLAND_3] = PLANE;
1962         fighter[JAPAN_3] = PLANE;
1963         break;
1964         //Oasis Offence
1965     case 5:
1966         player_sides[GERMAN_1] = ENEMY;
1967         player_sides[FINLAND_1] = ENEMY;
1968         player_sides[ENGLAND_1] = ENEMY;
1969         player_sides[JAPAN_1] = ALLIED;
1970         player_sides[GERMAN_2] = ENEMY;
1971         player_sides[FINLAND_2] = ENEMY;
1972         player_sides[ENGLAND_2] = ENEMY;
1973         player_sides[JAPAN_2] = ALLIED;
1974         player_sides[GERMAN_3] = ENEMY;
1975         player_sides[FINLAND_3] = ENEMY;
1976         player_sides[ENGLAND_3] = ENEMY;
1977         player_sides[JAPAN_3] = ALLIED;
1978 
1979         number_of_planes[GERMAN_1] = 3;
1980         number_of_planes[FINLAND_1] = 3;
1981         number_of_planes[ENGLAND_1] = 3;
1982         number_of_planes[JAPAN_1] = 6;
1983         number_of_planes[GERMAN_2] = 3;
1984         number_of_planes[FINLAND_2] = 3;
1985         number_of_planes[ENGLAND_2] = 3;
1986         number_of_planes[JAPAN_2] = 6;
1987         number_of_planes[GERMAN_3] = 3;
1988         number_of_planes[FINLAND_3] = 3;
1989         number_of_planes[ENGLAND_3] = 3;
1990         number_of_planes[JAPAN_3] = 6;
1991 
1992         miss_plane_direction[GERMAN_1] = 0;
1993         miss_plane_direction[FINLAND_1] = 0;
1994         miss_plane_direction[ENGLAND_1] = 0;
1995         miss_plane_direction[JAPAN_1] = 0;
1996         miss_plane_direction[GERMAN_2] = 0;
1997         miss_plane_direction[FINLAND_2] = 0;
1998         miss_plane_direction[ENGLAND_2] = 0;
1999         miss_plane_direction[JAPAN_2] = 0;
2000         miss_plane_direction[GERMAN_3] = 0;
2001         miss_plane_direction[FINLAND_3] = 0;
2002         miss_plane_direction[ENGLAND_3] = 0;
2003         miss_plane_direction[JAPAN_3] = 0;
2004 
2005         miss_pl_x[GERMAN_1] = 0;
2006         miss_pl_x[FINLAND_1] = 0;
2007         miss_pl_x[ENGLAND_1] = 0;
2008         miss_pl_x[JAPAN_1] = 0;
2009         miss_pl_x[GERMAN_2] = 0;
2010         miss_pl_x[FINLAND_2] = 0;
2011         miss_pl_x[ENGLAND_2] = 0;
2012         miss_pl_x[JAPAN_2] = 0;
2013         miss_pl_x[GERMAN_3] = 0;
2014         miss_pl_x[FINLAND_3] = 0;
2015         miss_pl_x[ENGLAND_3] = 0;
2016         miss_pl_x[JAPAN_3] = 0;
2017 
2018         miss_pl_y[GERMAN_1] = 0;
2019         miss_pl_y[FINLAND_1] = 0;
2020         miss_pl_y[ENGLAND_1] = 0;
2021         miss_pl_y[JAPAN_1] = 0;
2022         miss_pl_y[GERMAN_2] = 0;
2023         miss_pl_y[FINLAND_2] = 0;
2024         miss_pl_y[ENGLAND_2] = 0;
2025         miss_pl_y[JAPAN_2] = 0;
2026         miss_pl_y[GERMAN_3] = 0;
2027         miss_pl_y[FINLAND_3] = 0;
2028         miss_pl_y[ENGLAND_3] = 0;
2029         miss_pl_y[JAPAN_3] = 0;
2030 
2031         fighter[GERMAN_1] = FIGHTER;
2032         fighter[FINLAND_1] = FIGHTER;
2033         fighter[ENGLAND_1] = FIGHTER;
2034         fighter[JAPAN_1] = PLANE;
2035         fighter[GERMAN_2] = PLANE;
2036         fighter[FINLAND_2] = PLANE;
2037         fighter[ENGLAND_2] = PLANE;
2038         fighter[JAPAN_2] = FIGHTER;
2039         fighter[GERMAN_3] = PLANE;
2040         fighter[FINLAND_3] = PLANE;
2041         fighter[ENGLAND_3] = PLANE;
2042         fighter[JAPAN_3] = PLANE;
2043         break;
2044 
2045     }
2046 
2047 }
2048