Skip to content
Snippets Groups Projects
Commit 92582899 authored by Arnaud Albiez's avatar Arnaud Albiez
Browse files

Modification de la structure

parent ff29d46f
Branches
No related merge requests found
...@@ -8,6 +8,10 @@ enum CaseType{ ...@@ -8,6 +8,10 @@ enum CaseType{
GOAL = '.', GOAL = '.',
NONE = ' ' NONE = ' '
}; };
struct Goal{
int x, y;
};
/** /**
* @struct Grid grid.h * @struct Grid grid.h
* @brief Cette structure contient les informations * @brief Cette structure contient les informations
...@@ -18,6 +22,8 @@ struct Grid{ ...@@ -18,6 +22,8 @@ struct Grid{
int column_number; ///< Nombre de colonne de game_grid int column_number; ///< Nombre de colonne de game_grid
int row_number; ///< Nomber de ligne de game_grid int row_number; ///< Nomber de ligne de game_grid
struct Player * position;///< Positioin du joueur struct Player * position;///< Positioin du joueur
struct Goal* tabGoal;///< Liste des but
}; };
struct Grid* init_level(const char* file_path); 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) ...@@ -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); void free_grid(struct Grid* grid);
#endif #endif
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment