aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h1
-rw-r--r--inc/cub3d_defines.h1
-rw-r--r--inc/cub3d_structs.h2
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