From 5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 30 Mar 2020 15:36:16 +0200 Subject: Check missing enemy good --- inc/cub3d_structs.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'inc/cub3d_structs.h') diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index e2905f2..a5c2bcc 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -224,6 +224,12 @@ typedef struct s_map float y_floor_step; } t_map; +typedef struct s_bad_boy +{ + int8_t life; + void (*act[5])(struct s_sprite*, struct s_map*); +} t_bad_boy; + typedef struct s_cub { uint8_t w_side; @@ -270,6 +276,7 @@ typedef struct s_cub struct s_img tnum[12]; struct s_sprite **sprites; struct s_sfx sfx[13]; + struct s_bad_boy *bad_boy; } t_cub; # endif -- cgit v1.2.3