X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=advent.h;h=dc81ed5fd55b6e9c625bfc281493ffc4c441f243;hp=87ee153dcb81136593236056fffc551732d155de;hb=e7dc3eab5d7eb798199e59081e846582af7205a7;hpb=2a5dac3d8ce9d8b41704a88230b2031b99b15de6 diff --git a/advent.h b/advent.h index 87ee153..dc81ed5 100644 --- a/advent.h +++ b/advent.h @@ -102,7 +102,7 @@ typedef enum scorebonus {none, splatter, defeat, victory} score_t; * These were at one time FORTRAN line numbers. * The values don't matter, but perturb their order at your peril. */ -enum phase_codes { +typedef enum { GO_TERMINATE, GO_MOVE, GO_TOP, @@ -111,7 +111,7 @@ enum phase_codes { GO_WORD2, GO_UNKNOWN, GO_DWARFWAKE, -}; +} phase_codes_t; typedef long vocab_t; // index into a vocabulary array */ typedef long verb_t; // index into an actions array */ @@ -235,7 +235,7 @@ extern int suspend(void); extern int resume(void); extern int restore(FILE *); extern long initialise(void); -extern int action(command_t); +extern phase_codes_t action(command_t); extern void state_change(obj_t, int); extern bool is_valid(struct game_t);