From 10f6997a3ba7107f289ce763390394ae1f8bdf85 Mon Sep 17 00:00:00 2001
From: PAILLE Kyriann <kyriann.paille9@etu.univ-lorraine.fr>
Date: Sun, 8 Jan 2023 22:15:43 +0000
Subject: [PATCH] Update game.h, location.h, stack.h

---
 game.h     | 6 ++++--
 location.h | 6 +++++-
 stack.h    | 3 ++-
 3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/game.h b/game.h
index af058a2..2ffd43b 100644
--- a/game.h
+++ b/game.h
@@ -1,11 +1,13 @@
 #ifndef GAME_H
 #define GAME_H
-
 #include "mobile.h"
+#include "stack.h"
 
-typedef struct
+struct Stack;
+typedef struct Game
 {
     Mobile *player;
+    struct Stack *locationStack;
 } Game;
 
 extern Game *GameInit();
diff --git a/location.h b/location.h
index d2706f9..3bfe9cf 100644
--- a/location.h
+++ b/location.h
@@ -3,16 +3,20 @@
 #include "exits.h"
 #include "stack.h"
 
+struct Game;
 typedef struct Location
 {
     char *name;
     char *desc;
+    int index;
     struct Location *directions[6];
 } Location;
 
+Location *LocationInit(struct Game *game);
+
 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
+#endif // LOCATION_H
diff --git a/stack.h b/stack.h
index bfca2f7..55ba77f 100644
--- a/stack.h
+++ b/stack.h
@@ -3,8 +3,9 @@
 #include "Location.h"
 
 
+struct Location;
 typedef struct Stack
 {
     Location* location;
     struct Stack* next;
-}Stack;
+}Stack;
\ No newline at end of file
-- 
GitLab