X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=advent.h;h=a7f5ac4c71d1814a1b653271e942c0a41b174e2e;hb=2d71fe813793334a0e2c46d8b942dba9a5aff208;hp=a8d53f23c17ca5eeca0301be892858cebc01882d;hpb=d23111dabab46a8bcdf7e453ec099e4521d1cad6;p=open-adventure.git diff --git a/advent.h b/advent.h index a8d53f2..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); @@ -218,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 */