aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h2
-rw-r--r--inc/cub3d_structs.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index 5ae96c4..c0b324b 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -261,6 +261,8 @@ void ft_bb_fire(t_bad_boy *bl, t_sprite *sl, t_map *ml);
void ft_check_bad_boy_shoot(t_cub *cl);
void ft_damage_bad_boy(t_cub *cl);
int8_t ft_can_it_shoot(int8_t id, double d, t_cub *cl);
+int8_t ft_bb_collision(double old_y, double old_x,
+ t_sprite *sl, t_map *ml);
/*
** ====== DELETION ======
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index dcf633f..9a605c9 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -106,6 +106,7 @@ typedef struct s_sprite
int32_t tex_y;
double s_pos_x;
double s_pos_y;
+ uint8_t r;
double spritex;
double spritey;
int8_t exists;