diff options
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 | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 0b3e21c..dc363df 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -89,6 +89,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); +int8_t ft_get_music(char **words, t_cub *clist); int8_t ft_check_map_line(char *line, uint8_t l, t_cub *clist); int8_t ft_check_ext(const char *filep, const char *ext); int8_t ft_check_not_found(const char *path); diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index ec990a4..e6aa3b3 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -109,6 +109,7 @@ enum # define FT_ERR_RES_ALPHA "resolution should be digits only" # 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_XPM "given sound file is not a .wav" # define FT_ERR_COLOR_ALPHA "colors should be digits only" # define FT_ERR_COLOR_MAX "colors should be maximum 255" # define FT_ERR_COLOR_ARGS "colors should be three numbers with commas" diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index f6b42e6..5bd5616 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -112,6 +112,7 @@ typedef struct s_map char *sprite_path; char *nl_tex_path; char *nlevel_path; + char *music_path; char *mapl; char **map; int8_t x_step; @@ -122,6 +123,7 @@ typedef struct s_map size_t map_start; uint8_t isspawn; uint8_t isnlvl; + uint8_t ismusic; uint8_t scale; uint32_t nlx; uint32_t nly; @@ -137,6 +139,7 @@ typedef struct s_cub char errmsg[64]; int32_t key_input[5]; int (*key_ptr[6])(struct s_cub*); + int8_t (*get_ptr[11])(char**, t_cub*); struct s_win *wlist; struct s_player *plist; struct s_map *mlist; |