diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cub3d.h | 4 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 6c9a010..a2c2aba 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -150,8 +150,10 @@ void ft_floor_cast_inits(uint16_t y, t_ray *rl, t_cub *cl); */ void ft_sfx_death(t_cub *cl); -void ft_sfx_trap(t_cub *cl); void ft_sfx_new_level(t_cub *cl); +void ft_sfx_pain(t_cub *cl); +void ft_sfx_trap(t_cub *cl); +void *ft_sfx_pain_thread(void *vargp); /* ** ====== OTHER ====== diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index aaf8498..01c9b07 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -59,13 +59,14 @@ typedef struct s_sfx { char **death; char **new_lvl; - char **pain_one; - char **pain_two; + char *pain_one; + char *pain_two; char **trap; pid_t death_pid; pid_t new_lvl_pid; - pid_t pain_pid; + pthread_t pain_tid; pid_t trap_pid; + pthread_mutex_t pain_mutex; } t_sfx; typedef struct s_bmp_rgb |