From 6463914b0dc8136c453a1c163dd98f39e55e1c21 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 19 Mar 2020 19:04:46 +0100 Subject: Decent tier --- inc/cub3d.h | 1 + inc/cub3d_structs.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index e422a59..8a7cfcb 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -52,6 +52,7 @@ int ft_d_key(t_cub *clist); int ft_f1_key(t_cub *clist); int ft_left_key(t_cub *clist); int ft_right_key(t_cub *clist); +int ft_space_key(t_cub *clist); int ft_click_close(int keycode, t_cub *clist); int ft_key_loop(t_cub *cl); int32_t ft_convert_keycode(const int32_t tmp_code); diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index ba6243b..c2e1d4a 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -16,6 +16,7 @@ #include #include #include +#include #include typedef struct s_win @@ -142,6 +143,7 @@ typedef struct s_player float cam_x; float plane_x; float plane_y; + uint8_t fire; int8_t life; uint8_t has_weapon[2]; int8_t handles_weapon; -- cgit v1.2.3