X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=advent.h;h=a7f5ac4c71d1814a1b653271e942c0a41b174e2e;hb=7eaefce61d74fbc73daabd3f42f048038366b5ad;hp=9de79f049f80c49eb5915e94ebe370a48452e8dc;hpb=e66b4561d457352d76582828fbfa3bd83d8b8a4c;p=open-adventure.git diff --git a/advent.h b/advent.h index 9de79f0..a7f5ac4 100644 --- a/advent.h +++ b/advent.h @@ -163,6 +163,16 @@ struct game_t { long prop[NOBJECTS + 1]; }; +/* + * Game application settings - settings, but not state of the game, per se. + * This data is not saved in a saved game. + */ +struct settings_t { + FILE *logfp; + bool oldstyle; + bool prompt; +}; + struct command_t { enum speechpart part; vocab_t verb; @@ -172,8 +182,7 @@ struct command_t { }; extern struct game_t game; -extern FILE *logfp; -extern bool oldstyle, prompt; +extern struct settings_t settings; extern char* xstrdup(const char* s); extern void* xmalloc(size_t size); @@ -206,7 +215,6 @@ extern long atdwrf(long); extern long setbit(long); extern bool tstbit(long, int); extern void make_zzword(char*); -extern void datime(long*, long*); extern void set_seed(long); extern unsigned long get_next_lcg_value(void); extern long randrange(long); @@ -219,7 +227,6 @@ extern int restore(FILE *); extern long initialise(void); extern int action(struct command_t *command); -/* Alas, declaring this static confuses the coverage analyzer */ void bug(enum bugtype, const char *) __attribute__((__noreturn__)); /* end */