-
Notifications
You must be signed in to change notification settings - Fork 1
/
defines.h
5319 lines (5193 loc) · 191 KB
/
defines.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Copyright (C) 1997 Gremlin Interactive Ltd.
* With modifications by Mark E Sowden
*/
#define OFF 0
#define ON 1
#define NO 0
#define YES 1
#define English 0
#define French 1
#define German 2
#define American 3
#define Canadian 4
#define Norwegian 5
#define ROLLING_DEMO Off // can be Off, German, English, American
#define REAL_NAMES NO // can be YES or NO (used specifically for USA/Canadian versions).
#define MAX_NET_USERS 20
#define DEMO_TIME 1000
#define FILE_ERROR 1
#define SOUND_ERROR 2
#define CONFIG_ERROR 4
#define MOUSE_ERROR 8
#define MEMORY_PROBLEM 16
#define FILE_MISSING 32
#define WHEEL_ERROR 64
#define MATCH_ERROR 256
// Input control types.
enum {
NO_CTRL, JOY1_CTRL, JOY2_CTRL, KEY1_CTRL, KEY2_CTRL, NET_CTRL
};
#define SPECIALK 128
#define NO_OF_CONTROL_METHODS 6
#define UP_KEY 0
#define DN_KEY 1
#define LF_KEY 2
#define RT_KEY 3
#define F1_KEY 4
#define F2_KEY 5
#define LF_RED 0
#define RT_RED 1
#define UP_RED 2
#define DN_RED 3
#define F1_RED 4
#define F2_RED 5
#define PI 3.1415
#define SEQU_ADDR 0x3c4
#define CRTC_ADDR 0x3d4
#define REAL_SPEED 20
#define MAX_USERS 20
#define TIMER_FRAC 10
#define TIMER_SPEED (TIMER_FRAC*REAL_SPEED)
#define MEG4 0
#define MEG8 1
#define LO 0
#define HI 1
#define MED 1
#define HIGH 2
#define FRIENDLY 0
#define LEAGUE 1
#define CUP 2
#define PRACTICE 3
#define NETWORK 4
#define MEM8 3500000
#define FRAG 1000000
#define ARCADE 0
#define SIMULATION 1
#define PLAYER1 1
#define PLAYER2 2
#define PLAYER3 4
#define PLAYER4 8
#define PEN 256
#define O_G 512
#define CREDIT_TEAMa 4
#define CREDIT_TEAMb 8
#define GOAL_DISPLAYED 16
#define USA 0
#define RUS 1
#define SPN 2
#define BUL 3
#define BEL 4
#define DEN 5
#define NIR 6
#define TUN 7
#define ZAM 8
#define SWZ 9
#define CAM 10
#define SKR 11
#define ITA 12
#define MOR 13
#define ENG 14
#define SCO 15
#define WAL 16
#define EGY 17
#define COL 18
#define SWE 19
#define ARG 20
#define EIR 21
#define HOL 22
#define FIN 23
#define SLV 24
#define IVR 25
#define GHA 26
#define ROM 27
#define GER 28
#define GRE 29
#define NOR 30
#define SAU 31
#define FRA 32
#define POL 33
#define JAP 34
#define URU 35
#define BRA 36
#define NIG 37
#define MEX 38
#define CZE 39
#define ICE 40
#define POR 41
#define CHI 42
#define BOL 43
#define GRM 44
#define WHT 45
#define BLU 46
#define F_4_3_3 0
#define F_5_3_2 1
#define F_6_3_1 2
#define F_4_2_4 3
#define F_5_1_4 4
#define F_4_0_6 5
#define F_3_1_6 6
#define F_4_1_5 7
#define F_5_2_3 8
#define F_4_4_2 9
#define TRUE 1
#define FALSE 0
#define LARGE 0
#define SMALL 8
#define SHADOW 2
#define ACTIVE 1
#define INACTIVE 0
#define DELETE_OLD_SPRITE 2
#define OLD_SPRITE_FLAG 4
#define FREEZE 16*2
#define REMOVE 32*2
#define INVISIBLE 64*2
#define HALF_SPIN 128*2
#define START_SPIN 256*2
#define SINGLE_SPIN 512*2
#define BACK_SPIN 1024*2
#define MINI_BUTTON 2048*2
#define STANDARD_BUTTON 4096*2
#define SpriteON 8192*2
#define PALETTE_FADE_UP 1
#define PALETTE_FADE_DOWN 3
#define REPL_BKG 1
#define EDIT_TEXT 2
#define MOUSE_OFF 4
#define MARK_TEXT 16
#define ENTER_NUMBER 32
#define LEFT_BUTTON 1
#define RIGHT_BUTTON 2
#define SHADOWtextOFF 0
#define SHADOWtextON 1
#define RIGHTjustifyTEXT 2
#define SFONT 4
#define MFONT 8
#define BFONT 16
#define CAPS 32
#define TIGHTEN 64
#define CHISEL 128
#define SILVER_TEXTURE 512
#define COPY_TO_BACK 1024
#define CENTREjustifyTEXT 4096
#define BUTTONcentreJUSTIFY 32768
#define SHADOWimageON 1
#define SHADOWimageOFF 0
#define MENU_1 1
#define MENU_2 2
#define MENU_3 3
#define MENU_4 4
#define MENU_5 5
#define MENU_6 6
#define MENU_7 7
#define MENU_8 8
#define MENU_9 9
#define MENU_10 10
#define CURSOR_COLOUR ((9*16)+0)
#undef BLACK
#define BLACK ((0*16)+1)
#undef GREY
#define GREY (((1*16)+0)-6)
#undef CYAN
#define CYAN ((11*16)+12)
#undef GREEN
#define GREEN ((11*16)+10)
#define GREEN2 ((4*16)+4)
#define BRIGHTER_GREEN2 ((4*16)+10)
#define BRIGHT_WHITE ((1*16)+15)
#define DULL_WHITE ((1*16)+10)
#define BRIGHT_GRAY ((1*16)+5)
#define DULL_GRAY ((1*16)+0)
#define BRIGHT_GREEN ((11*16)+9)
#define DULL_GREEN ((11*16)+10)
#define BRIGHT_YELLOW ((11*16)+7)
#define BRIGHT_CYAN ((11*16)+11)
#define BRIGHT_RED ((7*16)+12)
#define RED_TEXT 130
#define GREEN_STAR 75
#define YELW_STAR 146
#define RED_STAR 111
#define MARK_TEXT_COLOUR 20
#define SELECTED_TEXT_COLOUR BRIGHT_CYAN
#define MAX_IMAGES 18
#define MAX_STRINGS 44
#define MAX_LABELS 40
#define MAX_BUTTONS 11
#define MAX_SPRITES 44
#define MAX_FORMATIONS 10
#define MAX_COPIES 128
#define COACH_TEXT 1
#define FLAIR_TEXT 2
#define ACCURACY_TEXT 3
#define CNTRL_TEXT 4
#define PACE_TEXT 5
#define VISION_TEXT 6
#define POWER_TEXT 7
#define STAMINA_TEXT 8
#define DISCIPLINE_TEXT 9
#define PLAY_STATS_TEXT 10
#define SKILL_TEXT 11
#define PERC_0_TEXT 12
#define PERC_50_TEXT 13
#define PERC_100_TEXT 14
#define EDIT_DATA_TEXT 15
#define SQUAD_CHOOSE_TEXT 16
#define ONE_TXT 17
#define TWO_TXT 18
#define THREE_TXT 19
#define FOUR_TXT 20
#define FIVE_TXT 21
#define SIX_TXT 22
#define SEVEN_TXT 23
#define EIGHT_TXT 24
#define NINE_TXT 25
#define TEN_TXT 26
#define ELEVEN_TXT 27
#define TWELVE_TXT 28
#define THIRTEEN_TXT 29
#define FOURTEEN_TXT 30
#define FIFTEEN_TXT 31
#define SIXTEEN_TXT 32
#define SEVENTEEN_TXT 33
#define EIGHTEEN_TXT 34
#define NINETEEN_TXT 35
#define TWENTY_TXT 36
#define TWENTYONE_TXT 37
#define TWENTYTWO_TXT 38
#define ENVIRONMENT_TEXT 39
#define PLY1_SELECT_TEXT 40
#define PLY2_SELECT_TEXT 41
#define PLY3_SELECT_TEXT 42
#define PLY4_SELECT_TEXT 43
#define COMMENTARY_TEXT 44
#define PARTICIPATING_TEXT 45
#define NO_TEAMS_TEXT 46
#define SKY_TXT 47
#define STADIUM_TXT 48
#define LINE_TXT 49
#define VIDEO_TXT 50
#define PLY_DET_TEXT 51
#define PTCH_DET_TEXT 52
#define RES_TXT 53
#define CAM_TEXT 54
#define SCRN_TEXT 55
#define CROWD_TEXT 56
#define COMM_TEXT 57
#define MSTR_TEXT 58
#define PITCH_TXT 59
#define MUSIC_TXT 60
#define AUDIO_TXT 61
#define AUDIO_SND_TEXT 62
#define MATCH_TEXT 63
#define VENUE_TXT 64
#define LGE_TBL_TEXT 65
#define RANK_A_TEXT 66
#define RANK_B_TEXT 67
#define RANK_C_TEXT 68
#define RESULT_TEXT 69
#define END_SEASON_TEXT 70
#define CHAMPS_TEXT 71
#define RELIGATED_TEXT 72
#define PROMOTED_TEXT 73
#define REL_B_TEXT 74
#define PRO_C_TEXT 75
#define NO_NET_PLAYS_TEXT 76
#define CHOOSE_TEXT 77
#define CUP_WINNERS_TEXT 78
#define RUNNERS_UP_TEXT 79
#define CONTROLS_TEXT 80
#define MEDIA_TEXT 81
#define RULES_TEXT 82
#define CALIBRATION_TEXT 83
#define OFFSIDE_TXT 84
#define SUBS_TXT 85
#define FREEKICKS_TXT 86
#define GAME_LEN_TEXT 87
#define BOOKING_TXT 88
#define WIND_TXT 89
//#define QUIT_TEXT 90
#define DETAIL_TEXT 91
#define START_TEXT 92
#define CUSTOM_TEXT 93
#define SAVE_TEXT 94
#define LOAD_TEXT 95
#define MATCH_SETUP_TXT 96
#define CONTROL_TEXT 97
#define SELECTION_TEXT 98
#define NEXT_TEXT 99
#define SETUP_TXT 101
#define AUTOMAN_TEXT 102
#define GROUP_A_TEXT 103
#define GROUP_B_TEXT 104
#define GROUP_C_TEXT 105
#define SOUND_TEXT 106
#define RANDOM_TEXT 107
#define FRIENDLY_TEXT 108
#define EXTRA_TIME_TEXT 109
#define WON_TEXT 110
#define ON_PENS_TEXT 111
#define NETWORK_GAME_TEXT 112
#define COMPUTER_TEXT 113
#define PLAYER_ONE_TEXT 114
#define PLAYER_TWO_TEXT 115
#define PLAYER_THREE_TEXT 116
#define PLAYER_FOUR_TEXT 117
#define OFF_TEXT 118
#define ON_TEXT 119
#define LOW_TEXT 120
#define HIGH_TEXT 121
#define MED_TEXT 122
#define WIRE_TEXT 123
#define FAR_TEXT 124
#define PLAN_TEXT 125
#define GLINE_TEXT 126
#define ISO_TEXT 127
#define PLYR_TEXT 128
#define REF_TEXT 129
#define MONO_TEXT 130
#define THREEd_TEXT 131
#define ARCADE_TEXT 132
#define SIMULATION_TEXT 133
#define LEAGUE_TEXT 134
#define CUP_TEXT 135
#define DONE_TEXT2 136
#define WAITING_TEXT 137
#define KEY1_TEXT 138
#define KEY2_TEXT 139
#define JOY1_TEXT 140
#define JOY2_TEXT 141
#define MOUSE_TEXT 142
#define GRAV1_TEXT 143
#define GRAV2_TEXT 144
#define RND1_TEXT 145
#define RND2_TEXT 146
#define QUTR_TEXT 147
#define SEMI_TEXT 148
#define FINAL_TEXT 149
#define DIVISION1_TEXT 150
#define DIVISION2_TEXT 151
#define DIVISION3_TEXT 152
#define After_Extra_TEXT 153
#define Pd_TEXT 154
#define Won_TEXT 155
#define Drew_TEXT 156
#define Lost_TEXT 157
#define For_TEXT 158
#define Against_TEXT 159
#define Pts_TEXT 160
#define GoalDiff_TEXT 161
#define TEXT1 162
#define TEXT2 163
#define TEXT3 164
#define TEXT4 165
#define TEXT5 166
#define TEXT6 167
#define TEXT7 168
#define TEXT8 169
#define TEXT9 170
#define TEXT10 171
#define TEXT11 172
#define COACH_TEXT2 173
#define TEAM_SELECT_TEXT 174
#define SLOT_TITLE_TEXT 175
#define PLAYR_TEXT 176
#define CONTROL_METHOD_TEXT 177
#define ROUND_UP_TEXT 178
#define NET_SELECT_TEXT 179
#define CENTRE_TEXT 180
#define NEW_TEXT 181
#define ON_PENALTIES_TEXT 182
#define ON_PENALTIES_TEXT2 183
#define CUP_WINNERS_TEXTa 184
#define CUP_WINNERS_TEXTb 185
#define NOT_USED_TEXT 186
#define UNTITLED_TEXT 187
#define NETWORK_ABORT_TEXT 188
#define NETWORK_SYNC_TEXT 189
#define LOADING_TEXT 190
#define PRACTICE_TEXT 191
#define REQUEST_DIR_TEXT 192 // 6 entries here
#define CD_TEXT 198
#define OVER10PEN_TEXT 199
#define OVER10PEN_TEXT2 200
#define MOUSE_ERROR_TEXT 201
#define SOUND_ERROR_TEXT 202
#define CONFG_ERROR_TEXT 203
#define DFILE_ERROR_TEXT 204
#define MFILE_ERROR_TEXT 205
#define INI3d_ERROR_TEXT 206
#define MEMOY_ERROR_TEXT 207
#define REDEF_TEXT 208
#define OG_TEXT 209
#define PEN_TEXT 210
#define DEMO1_TEXT 211
#define DEMO2_TEXT 212
#define DEMO3_TEXT 213
#define DEMO4_TEXT 214
#define DEMO5_TEXT 215
#define DEMO6_TEXT 216
#define DEMO7_TEXT 217
#define DEMO8_TEXT 218
#define DEMO9_TEXT 219
#define DEMO10_TEXT 220
#define DEMO11_TEXT 221
#define DEMO12_TEXT 222
#define DEMO13_TEXT 223
#define DEMO14_TEXT 224
#define DEMO15_TEXT 225
#define DEMO16_TEXT 226
#define DEMO17_TEXT 227
#define DEMO18_TEXT 228
#define DEMO19_TEXT 229
#define WHEEL1_TEXT 230
#define WHEEL2_TEXT 231
#define WHEEL3_TEXT 232
#define SECURITY_TEXT 233
#define WHEEL_ERROR_TEXT 234
#define MANUAL_PAGE_TEXT 235
#define NoOfPLAYERS_TEXT 241
#define GAMEtype_TEXT 242
#define COMPETITION_TEXT 244
#define TEAM_NAMEa 243
#define TEAM_NAMEb 245
#define VENUE_TEXT 246
#define TEAM_NAMEa_SCORE 255
#define TEAM_NAMEb_SCORE 256
#define TEAMa_SCORER 257
#define TEAMb_SCORER 258
#define GAMETYPE_TEXT 259
#define TEAM_SEASON_END 260
#define PLAYER_NAME_TEAMa 261
#define PLAYER_NAME_TEAMb 262
#define NETWORK_TEXT 264
#define WINNERS_NAME 265
#define RUNNERS_UP_NAME 266
#define ONE_TEXT 267
#define TWO_TEXT 268
#define THREE_TEXT 269
#define FOUR_TEXT 270
#define CONTROL_1_TEXT 271
#define CONTROL_2_TEXT 272
#define CONTROL_3_TEXT 273
#define CONTROL_4_TEXT 274
#define JOYSTICK_TEXT 276
#define OFFSIDE_TEXT 277
#define SUBS_TEXT 278
#define FREEKICKS_TEXT 279
#define TIME_TEXT 280
#define BOOKING_TEXT 281
#define WIND_TEXT 282
#define REFEREE_NAME 283
#define REFEREE_COUNTRY 284
#define SLOT_NAME 285
#define SLOT_STATE 286
#define SLOT_TITLE 287
#define PLAYER_LABEL 288
#define CONTROL_STATE 289
#define CALIBRATE_TEXT 290
#define PLAYER_NAME 291
#define KEY_TYPE 292
#define COACH_NAME 293
#define REQUEST_TEXT 294
#define CHOSEN_KEY 295
#define REDEFINE_TEXT 296
#define RESULT_TEAM_NAMEa 297
#define RESULT_TEAM_NAMEb 298
#define RESULT_TEAMa 299
#define RESULT_TEAMb 300
#define ROUNDUP_CONCLUSION 301
#define PLAYER_NAME_WITH_POSN 302
#define PLAYER_STAT 303
#define SELECTED_PLAYER_NAME 304
#define SELECTED_TEAM_NAME 305
#define PLAYER_FORMATION 306
#define LEAGUE_TEAM 307
#define PARTICIPATING_TEAM_NAME 308
#define CHOOSE_TEAM_NAME 309
#define FORMATION_TEXT 310
#define SKY_TEXT 311
#define STADIUM_TEXT 312
#define PITCH_TEXT 313
#define PLAYER_TEXT 314
#define LINE_TEXT 315
#define VIDI_TEXT 316
#define RES_TEXT 317
#define CAMERA_TEXT 318
#define SIZE_TEXT 319
#define AUDIO_TEXT 320
#define WINDOW1_TEXT 321
#define WINDOW2_TEXT 322
#define WINDOW3_TEXT 323
#define WHEEL_NUMBER 324
#define MANUAL1_TEXT 325
#define MANUAL2_TEXT 326
#define MANUAL3_TEXT 327
#define MANUAL4_TEXT 328
#define MANUAL_NO1 329
#define MANUAL_NO2 330
#define MANUAL_NO3 331
#define MANUAL_WORD 332
#define RANK_HEADING 333
#define DOS_TEXT 334
#define CUSTOMISE_TEXT 335
#define HIGHLIGHTED_TEXT 1
#define EDITABLE_TEXT 2
#define REPRINT_TEXT 4
#define SELECTABLE_TEXT 8
#define SKIP_PSUDO_RESTORE 16
#define SKIP_COPY_DOWN 32
#define TOGGLE_FLAG 64
#define HOVERING_OVER_TEXT 128
#define NET_FLAG 512
// definitions used for special print stuff!!!
#define LEAGUE_DATA 16384 //128
#define SCORER_DATA 8192 //128
#define PLAYER_NAME_LEN 19
#define COACH_NAME_LEN 18+5
#define PLAYER_MAX_PIXEL_LEN (240-28)
#define COACH_MAX_PIXEL_LEN (300-18)+32
#define TEAM_NAME_LEN 22
#define NickNAME_LEN 12
#define MAX_TEAMS 45
#define MAX_GOALS 91
#define MAX_LINES 5
#define KIT_BUTTON 100
#define ACTUA_BUTTON 101
#define WAVE_BUTTON 102
#define FLAG_BUTTON 103
#define CLICK_BUTTON 104
#define SILVER_CUP_BUTTON 105
#define TEAMS_BUTTON 106
#define TEST_BUTTON 107
#define SLIDE_BAR 108
#define SPIN_BUTTON 109
#define UP_ARROW_BUTTON 110
#define DOWN_ARROW_BUTTON 111
#define SELECTION_BUTTON 112
#define REF_BUTTON 113
#define DEBOUNCE_BUTTONS 128
#define NO_MOUSE 254
#define QUIT 255
#define UPDATE_DISPLAY 1
struct button_info {
int button_type;
int button_index;
int button_flags;
short button_xposn;
short button_yposn;
short buttonShadow_xposn;
short buttonShadow_yposn;
int button_left_select;
int button_right_select;
short BoundingBoxLeft;
short BoundingBoxTop;
short BoundingBoxRight;
short BoundingBoxBottom;
int FrameCounter;
int FrameSpeed;
int NoOfFrames;
short CopyWidth;
short CopyHeight;
int LastButtonNo;
int border_frame;
int button_text;
};
struct sprite_info {
int sprite_state;
int sprite_flags;
int sprite_type;
short sprite_xposn;
short sprite_yposn;
short spriteShadow_xposn;
short spriteShadow_yposn;
short CopyAreaX;
short CopyAreaY;
short CopyWidth;
short CopyHeight;
int LastSpriteNo;
int FrameCounter;
int FrameSpeed;
int NoOfFrames;
int NewSpriteFrame;
};
struct string_info {
int string_type;
int string_array;
int stat_array;
int string_flags;
short string_xposn;
short string_yposn;
short string_colour;
short string_mark_colour;
int string_shadow;
int max_string_chars;
int max_string_size;
short BoundingBoxLeft;
short BoundingBoxTop;
short BoundingBoxRight;
short BoundingBoxBottom;
short CopyAreaX;
short CopyAreaY;
short CopyWidth;
short CopyHeight;
};
typedef struct {
int BkgBITMAPfile;
int HeaderBITMAPfile;
short HeaderXposn;
short HeaderYposn;
int PaletteDATAfile;
short ImageLIST[MAX_IMAGES];
short LabelLIST[MAX_LABELS];
struct string_info StringLIST[MAX_STRINGS];
struct button_info ButtonLIST[MAX_BUTTONS];
struct sprite_info SpriteTABLE[MAX_SPRITES];
} menu;
struct control_data {
int control_type;
short control_yoff;
char control_mask;
};
typedef struct {
struct control_data controlLIST[4];
} controls;
typedef struct {
unsigned long offset;
unsigned long size;
} offset_file;
typedef struct {
short LabelXposn;
short LabelYposn;
short LabelColour;
char TextLabel;
int LabelShadow;
} label;
typedef struct {
short ImageXposn;
short ImageYposn;
short ImageShadowXposn;
short ImageShadowYposn;
int ImageNumber;
int ImageState;
} image;
typedef struct {
int spriteWidth;
int spriteHeight;
long spriteOffset;
} sprite;
#define PACE 0
#define POWER 1
#define CONTROL 2
#define FLAIR 3
#define VISION 4
#define ACCURACY 5
#define STAMINA 6
#define DISCIPLINE 7
#define REFS_VISION 8
#define REFS_DISCIPLINE 9
#define SUBSTITUTE 1
#define DISCIPLINARY_PTS 2
typedef struct {
char name[PLAYER_NAME_LEN + 1];
char goal_index;
char pace;
char power;
char control;
char flair;
char vision;
char accuracy;
char stamina;
char discipline;
char flags;
char squad_number;
char position;
char skin_tone;
} player_info;
struct referee_info {
char name[PLAYER_NAME_LEN + 1];
char vision;
char discipline;
short country;
};
struct restore_data {
int division;
int position;
};
struct demo_struct {
int team_a;
int team_b;
int random;
int stadium;
int referee;
};
struct team_info {
char name[TEAM_NAME_LEN + 1];
char coachname[COACH_NAME_LEN + 1];
int division;
int position;
int played;
int won;
int drew;
int lost;
int goals_for;
int goals_against;
int points;
int goal_diff;
int team_no;
char Nickname[NickNAME_LEN + 1];
int ranking, team_number;
char player_control, fixture_no;
int big_flag;
int formation;
int auto_formation;
int cup_key;
char country_code[3]; // Country Code for Samples
int computer_formation;
player_info players[22];
};
#define PITCH_WID 269
#define PITCH_HI 169
struct formation_info {
char formation_no[3];
short formation_xposn;
short formation_yposn;
int formation_flags;
char position_type;
};
#define GK 0
#define DF 1
#define MD 2
#define FD 3
struct team_formation {
struct formation_info formations[22];
};
struct swap_player_buffer {
player_info players[1];
};
struct redefine_info {
short string_xposn;
short string_yposn;
};
//#define sprite1width 14
//#define sprite1height 28
//#define sprite1Bitmap 0
//
//#define sprite1awidth 14
//#define sprite1aheight 28
//#define sprite1aBitmap (sprite1width*sprite1height)+sprite1Bitmap
//
//#define sprite1bwidth 14
//#define sprite1bheight 28
//#define sprite1bBitmap (sprite1awidth*sprite1aheight)+sprite1aBitmap
//
//#define sprite2width 21
//#define sprite2height 21
//#define sprite2Bitmap (sprite1bwidth*sprite1bheight)+sprite1bBitmap
//
//#define sprite3width 21
//#define sprite3height 19
//#define sprite3Bitmap (sprite2width*sprite2height)+sprite2Bitmap
//
//#define sprite4width 21
//#define sprite4height 19
//#define sprite4Bitmap (sprite3width*sprite3height)+sprite3Bitmap
//
//#define sprite5width 21
//#define sprite5height 19
//#define sprite5Bitmap (sprite4width*sprite4height)+sprite4Bitmap
//
//#define sprite6width 21
//#define sprite6height 19
//#define sprite6Bitmap (sprite5width*sprite5height)+sprite5Bitmap
//
//#define sprite7width 21
//#define sprite7height 19
//#define sprite7Bitmap (sprite6width*sprite6height)+sprite6Bitmap
//
//#define sprite8width 21
//#define sprite8height 19
//#define sprite8Bitmap (sprite7width*sprite7height)+sprite7Bitmap
//
//#define sprite9width 23
//#define sprite9height 19
//#define sprite9Bitmap (sprite8width*sprite8height)+sprite8Bitmap
//
//
//#define sprite10width 571
//#define sprite10height 29
//#define sprite10Bitmap (sprite9width*sprite9height)+sprite9Bitmap
//
//#define sprite11width 69
//#define sprite11height 82
//#define sprite11Bitmap (sprite10width*sprite10height)+sprite10Bitmap
//
//#define sprite12width 69
//#define sprite12height 82
//#define sprite12Bitmap (sprite11width*sprite11height)+sprite11Bitmap
//
//#define sprite13width 69
//#define sprite13height 82
//#define sprite13Bitmap (sprite12width*sprite12height)+sprite12Bitmap
//
//#define sprite14width 69
//#define sprite14height 82
//#define sprite14Bitmap (sprite13width*sprite13height)+sprite13Bitmap
//
//#define sprite15width 69
//#define sprite15height 82
//#define sprite15Bitmap (sprite14width*sprite14height)+sprite14Bitmap
//
//#define sprite16width 69
//#define sprite16height 82
//#define sprite16Bitmap (sprite15width*sprite15height)+sprite15Bitmap
//
//#define sprite17width 69
//#define sprite17height 82
//#define sprite17Bitmap (sprite16width*sprite16height)+sprite16Bitmap
//
//#define sprite18width 69
//#define sprite18height 82
//#define sprite18Bitmap (sprite17width*sprite17height)+sprite17Bitmap
//
//#define sprite19width 69
//#define sprite19height 82
//#define sprite19Bitmap (sprite18width*sprite18height)+sprite18Bitmap
//
//#define sprite20width 69
//#define sprite20height 82
//#define sprite20Bitmap (sprite19width*sprite19height)+sprite19Bitmap
//
//#define sprite21width 69
//#define sprite21height 82
//#define sprite21Bitmap (sprite20width*sprite20height)+sprite20Bitmap
//
//#define sprite22width 69
//#define sprite22height 82
//#define sprite22Bitmap (sprite21width*sprite21height)+sprite21Bitmap
//
//#define sprite23width 69
//#define sprite23height 82
//#define sprite23Bitmap (sprite22width*sprite22height)+sprite22Bitmap
//
//#define sprite24width 69
//#define sprite24height 82
//#define sprite24Bitmap (sprite23width*sprite23height)+sprite23Bitmap
//
//#define sprite25width 69
//#define sprite25height 82
//#define sprite25Bitmap (sprite24width*sprite24height)+sprite24Bitmap
//
//#define sprite26width 69
//#define sprite26height 82
//#define sprite26Bitmap (sprite25width*sprite25height)+sprite25Bitmap
//
//#define sprite27width 69
//#define sprite27height 82
//#define sprite27Bitmap (sprite26width*sprite26height)+sprite26Bitmap
//
//#define sprite28width 69
//#define sprite28height 82
//#define sprite28Bitmap (sprite27width*sprite27height)+sprite27Bitmap
//
//#define sprite29width 69
//#define sprite29height 82
//#define sprite29Bitmap (sprite28width*sprite28height)+sprite28Bitmap
//
//#define sprite30width 69
//#define sprite30height 82
//#define sprite30Bitmap (sprite29width*sprite29height)+sprite29Bitmap
//
//#define sprite31width 69
//#define sprite31height 82
//#define sprite31Bitmap (sprite30width*sprite30height)+sprite30Bitmap
//
//#define sprite32width 69