From 06ce772faa11c3ef38e00b85c56b6b195bf68c56 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 23 Mar 2020 16:21:36 +0100 Subject: Stuff to fix but ok --- inc/cub3d.h | 1 + inc/cub3d_defines.h | 1 + inc/cub3d_structs.h | 10 ++++++---- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index c6165ac..1531023 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -80,6 +80,7 @@ void ft_draw_ammo_back(t_cub *cl); void ft_draw_health_caption(t_cub *cl); void ft_draw_ammo_caption(t_cub *cl); void ft_draw_life_bar(t_cub *cl); +void ft_draw_ammo_bar(t_cub *cl); void ft_draw_scene(t_cub *clist); void ft_draw_scene_bmp(t_cub *clist); void ft_draw_circle(float a, float b, diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index 0d3b606..244ed94 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -293,5 +293,6 @@ enum # define FT_WEAP_ONE_STRT_AMMO -4 # define FT_WEAP_TWO_STRT_AMMO 30 # define FT_WEAP_THREE_STRT_AMMO 24 +# define FT_WEAP_MAX_AMMO 1000 # endif diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index e23d6c2..680f91a 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -239,16 +239,18 @@ typedef struct s_cub pthread_t mtid; int8_t isdead; uint8_t moves; - uint16_t life_cap_h; - uint16_t life_cap_w; - uint16_t life_num_h; - uint16_t life_num_w; uint16_t map_back_h; uint16_t map_back_w; uint16_t amm_back_h; uint16_t amm_back_w; + uint16_t life_cap_h; + uint16_t life_cap_w; + uint16_t life_num_h; + uint16_t life_num_w; uint16_t ammo_cap_h; uint16_t ammo_cap_w; + uint16_t ammo_num_h; + uint16_t ammo_num_w; int (*key_ptr[6])(struct s_cub*); int8_t (*get_ptr[14])(char**, struct s_cub*); char ref[22][3]; -- cgit v1.2.3