X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=advent.h;h=e89b2ad3b00b156b0103ff5ec224a6ef7e382790;hp=e461b575ff441b7b639cb6e066e337b57d625e16;hb=18a9be501ff8f0c57c5d540d0f5cd080c0438cd0;hpb=fa9b6d317f5138c8a4937a14a92acf4b5928545e diff --git a/advent.h b/advent.h index e461b57..e89b2ad 100644 --- a/advent.h +++ b/advent.h @@ -5,17 +5,18 @@ #include "common.h" #define LINESIZE 100 -#define NDWARVES 6 +#define NDWARVES 6 /* number of dwarves */ #define PIRATE NDWARVES /* must be NDWARVES-1 when zero-origin */ #define DALTLC LOC_NUGGET /* alternate dwarf location */ -#define MINTRS 50 -#define MAXTRS 79 -#define MAXPARMS 25 -#define INVLIMIT 7 +#define MINTRS 50 /* index of lowest reasure */ +#define MAXTRS 79 /* index of highest reasure */ +#define MAXPARMS 25 /* Max parameters for speak() */ +#define INVLIMIT 7 /* inverntory limit (# of objects) */ #define INTRANSITIVE -1 /* illegal object number */ #define SPECIALBASE 300 /* base number of special rooms */ #define WARNTIME 30 /* late game starts at game.limit-this */ #define PANICTIME 15 /* time left after closing */ +#define BATTERYLIFE 2500 /* turn limit increment from batteries */ typedef long token_t; /* word token - someday this will be char[TOKLEN+1] */ typedef long vocab_t; /* index into a vocabulary array */ @@ -94,7 +95,7 @@ extern void SETPRM(long,long,long); extern bool GETIN(FILE *,token_t*,token_t*,token_t*,token_t*); extern void echo_input(FILE*, char*, char*); extern char* get_input(void); -extern bool YES(vocab_t, vocab_t, vocab_t); +extern bool YES(const char*, const char*, const char*); extern long GETTXT(bool,bool,bool); extern token_t MAKEWD(long); extern long VOCAB(long,long); @@ -187,7 +188,6 @@ int action(FILE *input, enum speechpart part, long verb, token_t obj); #define GO_CLEAROBJ 2012 #define GO_CHECKHINT 2600 #define GO_CHECKFOO 2607 -#define GO_CLOSEJUMP 2610 #define GO_DIRECTION 2620 #define GO_LOOKUP 2630 #define GO_WORD2 2800