From 92582899986b2ce23b386c978f2581dc4095584e Mon Sep 17 00:00:00 2001
From: Arnaud Albiez <arnaud.albiez@poloper.org>
Date: Fri, 18 Nov 2022 19:08:35 +0100
Subject: [PATCH] Modification de la structure

---
 grid.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/grid.h b/grid.h
index 98c2616..99e1260 100644
--- a/grid.h
+++ b/grid.h
@@ -8,6 +8,10 @@ enum CaseType{
 	GOAL = '.',
 	NONE = ' '
 };
+
+struct Goal{
+	int x, y;
+};
 /**
  * @struct Grid grid.h
  * @brief Cette structure contient les informations 
@@ -18,6 +22,8 @@ struct Grid{
 	int column_number; ///< Nombre de colonne de game_grid
 	int row_number; ///< Nomber de ligne de game_grid
 	struct Player * position;///< Positioin du joueur
+	struct Goal* tabGoal;///< Liste des but
+	
 };
 
 struct Grid* init_level(const char* file_path);
@@ -33,6 +39,4 @@ void change_cell_grid(struct Grid* grid, int x, int y, enum CaseType new_valeur)
 void free_grid(struct Grid* grid);
 
 
-
-
 #endif
-- 
GitLab