advdec.h

Go to the documentation of this file.
00001 /*      header ADVDEC.H                                         *
00002  *      WARNING: GLOBAL (EXTERNAL) declarations for adventure   */
00003 
00004 #ifndef EXTERN                  /* #define as '' to define the variables */
00005 #define EXTERN extern
00006 #endif
00007 
00008 EXTERN boolean gaveup;          /* TRUE if he quits early       */
00009 EXTERN FILE *fd1, *fd2, *fd3, *fd4;
00010 
00011 /*
00012   English variables
00013 */
00014 EXTERN char *vtxt[MAXWORDS], *iotxt[MAXITEMS], *otxt[MAXITEMS];
00015 EXTERN int verbs[MAXWORDS], objs[MAXITEMS], iobjs[MAXITEMS];
00016 EXTERN int vrbx, objx, iobx;
00017 EXTERN int verb, object, motion, iobj, prep;
00018 EXTERN boolean newtravel, is_wiz;
00019 
00020 /*
00021   Play variables
00022 */
00023 extern int plac[MAXOBJ];        /* initial location      */
00024 extern int fixd[MAXOBJ];
00025 struct playinfo {
00026   int turns;
00027   int loc, oldloc, oldloc2, newloc;     /* location variables */
00028   long loc_attrib[MAXLOC+1];    /* location status       */
00029   int place[MAXOBJ];            /* object location       */
00030   int fixed[MAXOBJ];            /* second object loc     */
00031   int weight[MAXOBJ];
00032   int atloc[MAXLOC+1];
00033   int link[MAXOBJ * 2];
00034   int holder[MAXOBJ];
00035   int hlink[MAXOBJ];
00036   int visited[MAXLOC+1];                /* >0 if has been here   */
00037   int prop[MAXOBJ];             /* status of object      */
00038   long obj_state[MAXOBJ];
00039   long points[MAXOBJ];
00040   int hinted[HNTMAX+1];
00041   int hints[HNTMAX+1][5];
00042   int hintlc[HNTMAX+1];
00043   int tally, tally2;            /* item counts           */
00044   int limit;                    /* time limit            */
00045   int lmwarn;                   /* lamp warning flag     */
00046   int wzdark, closing, closed;  /* game state flags      */
00047   int holding;                  /* count of held items   */
00048   int detail;                   /* LOOK count            */
00049   int knfloc;                   /* knife location        */
00050   int clock, clock2, panic;     /* timing variables      */
00051   int dloc[DWARFMAX+1];         /* dwarf locations       */
00052   int dflag;                    /* dwarf flag            */
00053   int dseen[DWARFMAX+1];        /* dwarf seen flag       */
00054   int odloc[DWARFMAX+1];        /* dwarf old locations   */
00055   int daltloc;                  /* alternate appearance  */
00056   int dkill;                    /* dwarves killed        */
00057   int chloc, chloc2;            /* chest locations       */
00058   int bonus;                    /* to pass to end        */
00059   int numdie;                   /* number of deaths      */
00060   int foobar;                   /* fee fie foe foo...    */
00061   int combo;                    /* combination for safe  */
00062   boolean terse;
00063   int abbnum;
00064   int health;
00065   int chase;
00066   boolean flg239;
00067 
00068 
00069   int lastglob;                 /* to get space req.     */
00070 };
00071 extern struct playinfo g;

Generated on Fri Apr 14 22:56:38 2006 for minix by  doxygen 1.4.6