diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-28 18:55:45 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-28 18:55:45 +0100 |
commit | cbb47afbbcc9b42f3094df620bbc0ef02aa7f3d2 (patch) | |
tree | 1e0aa232748e071c10779ed7dbf641178d85664e /inc | |
parent | In progress (diff) | |
download | 42-cub3d-cbb47afbbcc9b42f3094df620bbc0ef02aa7f3d2.tar.gz 42-cub3d-cbb47afbbcc9b42f3094df620bbc0ef02aa7f3d2.tar.bz2 42-cub3d-cbb47afbbcc9b42f3094df620bbc0ef02aa7f3d2.tar.xz 42-cub3d-cbb47afbbcc9b42f3094df620bbc0ef02aa7f3d2.tar.zst 42-cub3d-cbb47afbbcc9b42f3094df620bbc0ef02aa7f3d2.zip |
Parsed
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cub3d.h | 1 | ||||
-rw-r--r-- | inc/cub3d_defines.h | 1 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 2 |
3 files changed, 4 insertions, 0 deletions
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 |