Begin gathering saveable game state into a structure. Not yet complete.
[open-adventure.git] / main.h
1 #include <stdbool.h>
2
3 #define LINESIZE        100
4
5 extern long ABB[], ATAB[], ATLOC[], DLOC[], FIXED[],
6                 KTAB[], *LINES, LINK[], LNLENG, LNPOSN,
7                 PARMS[], PLACE[], PTEXT[], RTEXT[], TABSIZ;
8 extern signed char INLINE[LINESIZE+1], MAP1[], MAP2[];
9 extern FILE *logfp;
10 extern bool oldstyle;
11
12 struct game_t   {
13     /* These members are in the save order of the individual variables
14      * in the 2.5 code. */
15     long abbnum;
16     long blklin;
17     long bonus;
18     long clock1;
19     long clock2;
20     long closed;
21     long closng;
22     long detail;
23     long dflag;
24     long dkill;
25     long dtotal;
26     long foobar;
27     long holdng;
28     long iwest;
29     long knfloc;
30     long limit;
31     /* LL may go here */
32     long lmwarn;
33     /* LOC will go here */
34     long newloc;
35     long numdie;
36     /* more state will go here */
37     long wzdark;
38 };
39 extern struct game_t game;