summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDominik Kaiser2024-05-29 16:34:17 +0200
committerDominik Kaiser2024-05-29 16:34:17 +0200
commitfc074e311232e90d997aa4062c63225380190bd3 (patch)
tree0dab1b550b76d0f27ff969c76c4da09c8a8b43e8 /include
parent9e62e1d25ed48263ad54ea236df1907a3a96790d (diff)
downloadso_long-fc074e311232e90d997aa4062c63225380190bd3.tar.gz
so_long-fc074e311232e90d997aa4062c63225380190bd3.zip
Add map checking
Diffstat (limited to 'include')
-rw-r--r--include/so_long.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/so_long.h b/include/so_long.h
index 6f3800d..1090358 100644
--- a/include/so_long.h
+++ b/include/so_long.h
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/08 14:14:02 by dkaiser #+# #+# */
-/* Updated: 2024/05/20 20:07:16 by dkaiser ### ########.fr */
+/* Updated: 2024/05/29 15:57:34 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -69,10 +69,10 @@ typedef struct s_tilemap
{
t_ivector grid_size;
t_ivector tile_size;
- char *tiles;
+ char *tiles;
t_ivector player_start_tile;
t_ivector exit_tile;
- mlx_image_t *collectible_img;
+ mlx_image_t *collectible_img;
} t_tilemap;
typedef struct s_game
@@ -85,6 +85,8 @@ typedef struct s_game
} t_game;
int load_map_from_file(t_tilemap *tilemap, char *filename);
+int check_map(t_tilemap *map);
+int check_for_valid_path(t_tilemap *map);
int init(t_game *game);
void loop(void *params);