source: trunk/minix/commands/advent/advdec.h@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 2.1 KB
Line 
1/* header ADVDEC.H *
2 * WARNING: GLOBAL (EXTERNAL) declarations for adventure */
3
4#ifndef EXTERN /* #define as '' to define the variables */
5#define EXTERN extern
6#endif
7
8EXTERN boolean gaveup; /* TRUE if he quits early */
9EXTERN FILE *fd1, *fd2, *fd3, *fd4;
10
11/*
12 English variables
13*/
14EXTERN char *vtxt[MAXWORDS], *iotxt[MAXITEMS], *otxt[MAXITEMS];
15EXTERN int verbs[MAXWORDS], objs[MAXITEMS], iobjs[MAXITEMS];
16EXTERN int vrbx, objx, iobx;
17EXTERN int verb, object, motion, iobj, prep;
18EXTERN boolean newtravel, is_wiz;
19
20/*
21 Play variables
22*/
23extern int plac[MAXOBJ]; /* initial location */
24extern int fixd[MAXOBJ];
25struct playinfo {
26 int turns;
27 int loc, oldloc, oldloc2, newloc; /* location variables */
28 long loc_attrib[MAXLOC+1]; /* location status */
29 int place[MAXOBJ]; /* object location */
30 int fixed[MAXOBJ]; /* second object loc */
31 int weight[MAXOBJ];
32 int atloc[MAXLOC+1];
33 int link[MAXOBJ * 2];
34 int holder[MAXOBJ];
35 int hlink[MAXOBJ];
36 int visited[MAXLOC+1]; /* >0 if has been here */
37 int prop[MAXOBJ]; /* status of object */
38 long obj_state[MAXOBJ];
39 long points[MAXOBJ];
40 int hinted[HNTMAX+1];
41 int hints[HNTMAX+1][5];
42 int hintlc[HNTMAX+1];
43 int tally, tally2; /* item counts */
44 int limit; /* time limit */
45 int lmwarn; /* lamp warning flag */
46 int wzdark, closing, closed; /* game state flags */
47 int holding; /* count of held items */
48 int detail; /* LOOK count */
49 int knfloc; /* knife location */
50 int clock, clock2, panic; /* timing variables */
51 int dloc[DWARFMAX+1]; /* dwarf locations */
52 int dflag; /* dwarf flag */
53 int dseen[DWARFMAX+1]; /* dwarf seen flag */
54 int odloc[DWARFMAX+1]; /* dwarf old locations */
55 int daltloc; /* alternate appearance */
56 int dkill; /* dwarves killed */
57 int chloc, chloc2; /* chest locations */
58 int bonus; /* to pass to end */
59 int numdie; /* number of deaths */
60 int foobar; /* fee fie foe foo... */
61 int combo; /* combination for safe */
62 boolean terse;
63 int abbnum;
64 int health;
65 int chase;
66 boolean flg239;
67
68
69 int lastglob; /* to get space req. */
70};
71extern struct playinfo g;
Note: See TracBrowser for help on using the repository browser.