diff options
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 |