Introduce command encapsulation structure.
[open-adventure.git] / advent.h
index 2b7f761ac4c3b7ba9a1c06c65181f5dff5d540bb..af9d1239fc2d8faff602347c4d61ad22ac5a74ff 100644 (file)
--- a/advent.h
+++ b/advent.h
@@ -181,8 +181,14 @@ 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;
+};
+
 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.