From 427f42c41885c29d6859ebd947817af10ebb09ee Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 9 Mar 2020 15:10:56 +0100 Subject: Best parser --- inc/cub3d.h | 1 + inc/cub3d_defines.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index f851f5e..39df1ea 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -93,6 +93,7 @@ int8_t ft_get_f_color(char **words, t_cub *clist); int8_t ft_get_f_tex(char **words, t_cub *clist); int8_t ft_get_c_color(char **words, t_cub *clist); int8_t ft_get_c_tex(char **words, t_cub *clist); +int8_t ft_get_darkness(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); int8_t ft_get_music(char **words, t_cub *clist); diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index 71c7baf..01b4ec9 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -138,6 +138,8 @@ enum # define FT_ERR_ARGS "too many or to few arguments" # define FT_ERR_RES_SMALL "resolution is too small, 50x50 minimum pls" # define FT_ERR_RES_ALPHA "resolution should be digits only" +# define FT_ERR_SH_ALPHA "shadow amount should be digits only" +# define FT_ERR_SH_RANGE "shadow should be set between 0 - 10" # define FT_ERR_NOT_A_CUB "given map is not a .cub" # define FT_ERR_NOT_A_XPM "given texture is not a .xpm" # define FT_ERR_NOT_A_WAV "given sound file is not a .wav" -- cgit v1.2.3