diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 18:09:55 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 18:09:55 +0100 |
commit | 273459283c98b5f10814fdf74c74c2e6a13f10c0 (patch) | |
tree | 6959619028e32cb5452e7ca6b65cccf5a7ca0072 /inc | |
parent | New sfx, clean exit (diff) | |
download | 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.tar.gz 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.tar.bz2 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.tar.xz 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.tar.zst 42-cub3d-273459283c98b5f10814fdf74c74c2e6a13f10c0.zip |
Not ideal
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d.h | 3 | ||||
-rw-r--r-- | inc/cub3d_structs.h | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index 3cea604..8148561 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -148,8 +148,9 @@ void ft_floor_cast_inits(uint16_t y, t_ray *rl, t_cub *cl); ** ====== ARGS ====== */ -void ft_sfx_trap(t_cub *cl); void ft_sfx_death(t_cub *cl); +void ft_sfx_footstep(t_cub *cl); +void ft_sfx_trap(t_cub *cl); /* ** ====== OTHER ====== diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 2f10f29..04ee59c 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -64,6 +64,11 @@ typedef struct s_sfx char **pain_one; char **pain_two; char **trap; + pid_t death_pid; + pid_t footstep_pid; + pid_t new_lvl_pid; + pid_t pain_pid; + pid_t trap_pid; } t_sfx; typedef struct s_bmp_rgb @@ -230,9 +235,6 @@ typedef struct s_cub char errmsg[64]; int32_t key_input[5]; pid_t mpid; - pid_t death_pid; - pid_t pain_pid; - pid_t trap_pid; int (*key_ptr[6])(struct s_cub*); int8_t (*get_ptr[14])(char**, struct s_cub*); char ref[22][3]; |