-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathglobals.h
83 lines (63 loc) · 2.15 KB
/
globals.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
#pragma once
/*
harris - a strategy game
Copyright (C) 2012-2015 Edward Cree
licensed under GPLv3+ - see top of harris.c for details
globals: game entity data
*/
#include "types.h"
#include "events.h"
#define NAV_GEE 0
#define NAV_H2S 1
#define NAV_OBOE 2
#define NAV_GH 3
int set_init_state(game *state);
extern const char * const navaids[NNAVAIDS];
extern const char * const navpicfn[NNAVAIDS];
extern unsigned int navevent[NNAVAIDS];
extern unsigned int navprod[NNAVAIDS];
extern const char * const winpicfn[NWINLVLS];
extern double todays_delta, todays_eqn;
extern date event[NEVENTS];
extern char *evtext[NEVENTS];
extern struct oboe oboe;
extern struct gee gee;
extern struct bombloadinfo bombloads[NBOMBLOADS];
extern struct overlay overlays[NUM_OVERLAYS];
extern const char *tpipe_names[TPIPE__MAX];
extern unsigned int max_dwell[TPIPE__MAX];
extern char *tpipe_descs[TPIPE__MAX];
extern char *tpipe_bt_desc;
extern unsigned int ntypes;
extern bombertype *types;
extern bombertype *rawtypes;
extern unsigned int nmods;
extern bmod *mods;
extern unsigned int nbases;
extern base *bases;
extern unsigned int nftypes;
extern fightertype *ftypes;
extern unsigned int nfbases;
extern ftrbase *fbases;
extern unsigned int nlocs;
extern locxn *locs;
extern unsigned int ntargs;
extern target *targs;
extern unsigned int nflaks;
extern flaksite *flaks;
extern unsigned int nstarts;
extern startpoint *starts;
extern SDL_Surface *terrain, *location, *yellowhair, *nointelbtn, *intelbtn, *navpic[NNAVAIDS], *winpic[NWINLVLS], *elitepic, *studentpic, *resizebtn, *fullbtn, *exitbtn, *markpic[4], *grouppic[8], *england;
extern SDL_Surface *grey_overlay, *yellow_overlay;
extern SDL_Surface *weather_overlay, *sun_overlay, *city_overlay, *target_overlay, *flak_overlay, *route_overlay, *xhair_overlay, *seltarg_overlay;
extern SDL_Surface *tick, *cross;
extern SDL_Surface *intelscreenbtn[3];
extern bool lorw[128][128];
extern unsigned char tnav[128][128];
extern unsigned int nregions;
extern struct region *regions;
extern unsigned int region[256][256];
extern unsigned int mainsizex, mainsizey;
extern bool fullscreen;
extern bool localdat, localsav;
extern char *cwd;