From cbb47afbbcc9b42f3094df620bbc0ef02aa7f3d2 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Fri, 28 Feb 2020 18:55:45 +0100 Subject: Parsed --- inc/cub3d.h | 1 + inc/cub3d_defines.h | 1 + inc/cub3d_structs.h | 2 ++ 3 files changed, 4 insertions(+) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index 41d669f..d72094c 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -50,6 +50,7 @@ int8_t ft_get_f_color(char **words, t_cub *clist); int8_t ft_get_c_color(char **words, t_cub *clist); int8_t ft_get_path_nl(char **words, t_cub *clist); int8_t ft_get_tex_nl(char **words, t_cub *clist); +void ft_get_nlvl_pos(t_map *ml); int ft_get_map_first_line(char *line, t_cub *clist); int ft_get_map_core(int fd, t_cub *clist); void ft_get_player_spawn(t_player *plist, t_cub *clist); diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index c4be489..5a8112b 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -90,6 +90,7 @@ # define FT_ERR_ALR_SET "duplicate entry" # define FT_ERR_ILL_MAP "map contains illegal char" # define FT_ERR_MULT_SPAWN "multiple spawn points" +# define FT_ERR_MULT_NLVL "multiple spawn new level access points" # define FT_ERR_MAP_L_L "last line is invalid" # define FT_ERR_RD_NO "could not find north side texture file" # define FT_ERR_RD_SO "could not find south side texture file" diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 33a291d..e20252e 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -123,6 +123,8 @@ typedef struct s_map uint8_t isspawn; uint8_t isnlvl; uint8_t scale; + uint32_t nlx; + uint32_t nly; } t_map; typedef struct s_cub -- cgit v1.2.3