diff --git a/grid.h b/grid.h index 98c2616868978fea4c7919002df902731d745597..99e1260c6d2b977eaa8a2cab08d3c8c49d0cb7e7 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