X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=advent.h;h=f7551d0ebb56fc65e54f62983fd5861c42f4d79e;hp=2b7f761ac4c3b7ba9a1c06c65181f5dff5d540bb;hb=67ed99b29cfe5c32b3db72091de3fb174195e032;hpb=4b93fb327a0ae07cf931f0ebc4c9a946e4cafd6c diff --git a/advent.h b/advent.h index 2b7f761..f7551d0 100644 --- a/advent.h +++ b/advent.h @@ -181,8 +181,16 @@ extern long AMBER, ATTACK, AXE, BACK, BATTERY, BEAR, enum speechpart {unknown, intransitive, transitive}; +struct command_t { + enum speechpart part; + vocab_t verb; + vocab_t obj; + token_t wd1, wd1x; + token_t wd2, wd2x; +}; + void initialise(void); -int action(FILE *input, enum speechpart part, token_t verb, token_t obj); +int action(FILE *input, struct command_t *command); /* Phase codes for action returns. * These were at one time FORTRAN line numbers.