diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 15:36:16 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-30 15:36:16 +0200 |
commit | 5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894 (patch) | |
tree | 9f706d2c691ac8e23f0b8d804baca3d80fb9e9bf /inc/cub3d_structs.h | |
parent | Norm (diff) | |
download | 42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.gz 42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.bz2 42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.xz 42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.zst 42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.zip |
Check missing enemy good
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d_structs.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |