projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce command encapsulation structure.
[open-adventure.git]
/
advent.h
diff --git
a/advent.h
b/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};
enum speechpart {unknown, intransitive, transitive};
+struct command_t {
+ enum speechpart part;
+ vocab_t verb;
+ vocab_t obj;
+};
+
void initialise(void);
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.
/* Phase codes for action returns.
* These were at one time FORTRAN line numbers.