X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=main.h;h=fd51876a2183f4e62bab1a79d2a585ca86a12927;hp=7a1d1c8ac94637a5b19d109ad0525214b604eb53;hb=7e5448e9740f211771262dbd4870aedf88c8f3a4;hpb=943b3a62e680e733ffe57552657d22ce148fed5f diff --git a/main.h b/main.h index 7a1d1c8..fd51876 100644 --- a/main.h +++ b/main.h @@ -1,7 +1,58 @@ +#include + #define LINESIZE 100 -extern long ABB[], ATAB[], ATLOC[], BLKLIN, DFLAG, DLOC[], FIXED[], HOLDNG, +extern long ABB[], ATAB[], ATLOC[], DLOC[], FIXED[], KTAB[], *LINES, LINK[], LNLENG, LNPOSN, PARMS[], PLACE[], PTEXT[], RTEXT[], TABSIZ; extern signed char INLINE[LINESIZE+1], MAP1[], MAP2[]; extern FILE *logfp; +extern bool oldstyle; + +struct game_t { + /* These members are in the save order of the individual variables + * in the 2.5 code. */ + long abbnum; + long blklin; + long bonus; + long clock1; + long clock2; + long closed; + long closng; + long detail; + long dflag; + long dkill; + long dtotal; + long foobar; + long holdng; + long iwest; + long knfloc; + long limit; + /* LL may go here */ + long lmwarn; + /* LOC will go here */ + long newloc; + /* OBJ will go here */ + long numdie; + long oldlc2; + long oldloc; + long oldobj; + long panic; + long saved; + long setup; + long spk; + long tally; + long thresh; + long trndex; + long trnluz; + long turns; + /* more state will go here */ + long wzdark; + long zzword; + /* more state will go here */ + long clshint; + long novice; + /* more state will go here */ + long dseen[7]; +}; +extern struct game_t game;