From 9eee3e73b9effa05c365240dd19a35a28c1271e6 Mon Sep 17 00:00:00 2001 From: PAILLE Kyriann <kyriann.paille9@etu.univ-lorraine.fr> Date: Sun, 8 Jan 2023 21:28:35 +0000 Subject: [PATCH] Upload New File --- location.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 location.h diff --git a/location.h b/location.h new file mode 100644 index 0000000..d2706f9 --- /dev/null +++ b/location.h @@ -0,0 +1,18 @@ +#ifndef LOCATION_H +#define LOCATION_H +#include "exits.h" +#include "stack.h" + +typedef struct Location +{ + char *name; + char *desc; + struct Location *directions[6]; +} Location; + +extern Location *LocationNew(char *name, char *desc); +extern Location *LocationDelete(Location *m); +extern void LocationPrint(Location *m); +extern Location *LocationInit(); +extern void LocationSetExit(Location *l1, Direction direction, Location *l2); +#endif // LOCATION_H \ No newline at end of file -- GitLab