X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=advent.h;h=08ae5e3cf7f3c546504a1efe9c2e26723aae44e0;hb=79f5701e07a81914cc4c20e60f496190d333d6e4;hp=f578eb0a4818ebf78e02967c4e8322c2a62bc6f6;hpb=e9aff2568f200be6cf47ec0bd945902a636bbd71;p=open-adventure.git diff --git a/advent.h b/advent.h index f578eb0..08ae5e3 100644 --- a/advent.h +++ b/advent.h @@ -32,9 +32,9 @@ struct game_t { long chloc2; long clock1; long clock2; - long clshnt; - long closed; - long closng; + bool clshnt; /* has player read the clue in the endgame? */ + bool closed; /* whether we're all the way closed */ + bool closng; /* whether it's closing time yet */ long conds; long detail; long dflag; @@ -45,22 +45,22 @@ struct game_t { long iwest; long knfloc; long limit; - long lmwarn; + bool lmwarn; /* has player been warned about lamp going dim? */ long loc; long newloc; - long novice; + bool novice; /* asked for instructions at start-up? */ long numdie; long oldloc; long oldlc2; long oldobj; - long panic; + bool panic; /* has player found out he's trapped in the cave? */ long saved; long tally; long thresh; long trndex; long trnluz; long turns; - long wzdark; + bool wzdark; /* whether the loc he's leaving was dark */ long zzword; long abbrev[LOCSIZ + 1]; long atloc[LOCSIZ + 1]; @@ -178,7 +178,7 @@ extern long AMBER, ATTACK, AXE, BACK, BATTERY, BEAR, enum speechpart {unknown, intransitive, transitive}; void initialise(void); -int action(FILE *input, enum speechpart part, long verb, token_t obj); +int action(FILE *input, enum speechpart part, token_t verb, token_t obj); /* Phase codes for action returns. * These were at one time FORTRAN line numbers.