X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=advent.h;h=c1fc79bad8aecd0edb1a0741a835b13074e0021b;hp=ce39df18f617129f0f0c8a036e1ac386f416a3a6;hb=3a93b2b5f08351c3e87d4f41c5c61273c42e9420;hpb=606b590c1e7205e678288c8ad800aba1f3c2edeb diff --git a/advent.h b/advent.h index ce39df1..c1fc79b 100644 --- a/advent.h +++ b/advent.h @@ -86,6 +86,8 @@ extern const char advent_to_ascii[]; extern FILE *logfp; extern bool oldstyle, editline, prompt; +enum speaktype {touch, look, hear, study}; + /* b is not needed for POSIX but harmless */ #define READ_MODE "rb" #define WRITE_MODE "wb" @@ -97,7 +99,7 @@ extern bool wordeq(token_t, token_t); extern bool wordempty(token_t); extern void wordclear(token_t *); extern void speak(const char*, ...); -extern void pspeak(vocab_t, int, ...); +extern void pspeak(vocab_t, enum speaktype, int, ...); extern void rspeak(vocab_t, ...); extern bool GETIN(FILE *, token_t*, token_t*, token_t*, token_t*); extern void echo_input(FILE*, char*, char*);