X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=advent.h;h=ce5e7c505b618c15decdf962265f68eeec046d2e;hb=672ef17d4cf6741b23cefb30b144777190c03c80;hp=c5abaa6661cc917ec9fb1ad25687ba624ae512e0;hpb=d844c2a3913e1c7d331b080a4a09631e515d9364;p=open-adventure.git diff --git a/advent.h b/advent.h index c5abaa6..ce5e7c5 100644 --- a/advent.h +++ b/advent.h @@ -14,6 +14,7 @@ #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 */ typedef long token_t; /* word token - someday this will be char[TOKLEN+1] */ typedef long vocab_t; /* index into a vocabulary array */ @@ -84,7 +85,7 @@ extern bool oldstyle, editline, prompt; #define WRITE_MODE "wb" extern char* xstrdup(const char*); extern void packed_to_token(long, char token[]); -extern void newspeak(const char*); +extern void speak(const char*); extern void PSPEAK(vocab_t,int); extern void RSPEAK(vocab_t); extern void SETPRM(long,long,long); @@ -113,7 +114,8 @@ enum termination {endgame, quitgame, scoregame}; extern void set_seed(long); extern unsigned long get_next_lcg_value(void); extern long randrange(long); -extern void score(enum termination); +extern long score(enum termination); +extern void terminate(enum termination) __attribute__((noreturn)); extern int suspend(FILE *); extern int resume(FILE *); extern int restore(FILE *);