aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 04:54:43 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 04:54:43 +0100
commit2ad0774ca20e56a4c64cd1fa6531739c701a61ed (patch)
tree6d1322eab2e85e3f926841b0b8aef2c73ecdbc1c /inc
parentStill bug on death (diff)
download42-cub3d-2ad0774ca20e56a4c64cd1fa6531739c701a61ed.tar.gz
42-cub3d-2ad0774ca20e56a4c64cd1fa6531739c701a61ed.tar.bz2
42-cub3d-2ad0774ca20e56a4c64cd1fa6531739c701a61ed.tar.xz
42-cub3d-2ad0774ca20e56a4c64cd1fa6531739c701a61ed.tar.zst
42-cub3d-2ad0774ca20e56a4c64cd1fa6531739c701a61ed.zip
I fucking love it
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h6
-rw-r--r--inc/cub3d_structs.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index b0f91fd..e9a6ddb 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -145,6 +145,12 @@ void ft_floor_cast(t_cub *cl);
void ft_floor_cast_inits(uint16_t y, t_ray *rl, t_cub *cl);
/*
+** ====== ARGS ======
+*/
+
+void ft_sfx_trap(t_cub *cl);
+
+/*
** ====== OTHER ======
*/
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 543c5a3..fb0fe15 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -230,6 +230,8 @@ typedef struct s_cub
char errmsg[64];
int32_t key_input[5];
pid_t mpid;
+ pid_t trap_pid;
+ pid_t pain_pid;
int (*key_ptr[6])(struct s_cub*);
int8_t (*get_ptr[14])(char**, struct s_cub*);
char ref[22][3];