diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-12 23:10:38 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-12 23:11:12 +1300 |
commit | 6fde432c11e99b812f3094d74e2640c04cab09b4 (patch) | |
tree | b0661d594c6deed8ade571569f463662a13ca3f3 | |
parent | Remove implicit array bound (diff) | |
download | texad-6fde432c11e99b812f3094d74e2640c04cab09b4.tar.gz texad-6fde432c11e99b812f3094d74e2640c04cab09b4.zip |
Move command definitions back to .c file
-rw-r--r-- | texad.c | 10 | ||||
-rw-r--r-- | texad.h | 10 |
2 files changed, 10 insertions, 10 deletions
@@ -4,6 +4,16 @@ #include "texad.h" +struct command commands[] = { + {LOOK , "l" }, + {GO_NORTH , "n" }, + {GO_SOUTH , "s" }, + {GO_EAST , "e" }, + {GO_WEST , "w" }, + {QUIT , "q" }, + {UNKNOWN , NULL} +}; + struct world *genesis(void) { struct world *w; @@ -52,13 +52,3 @@ enum action parse(char *); void move(struct player *, enum direction); void look(struct room *); int loop(struct world *); - -struct command commands[] = { - {LOOK , "l" }, - {GO_NORTH , "n" }, - {GO_SOUTH , "s" }, - {GO_EAST , "e" }, - {GO_WEST , "w" }, - {QUIT , "q" }, - {UNKNOWN , NULL} -}; |