aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 21:16:48 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 21:16:48 +0200
commit14b08c7f6a5fc0efa61af63ef651fd444b00b697 (patch)
treeb8b0f72d26d615f7cc5e6c3c6e7fa96a593753a3 /inc
parentFine (diff)
download42-cub3d-14b08c7f6a5fc0efa61af63ef651fd444b00b697.tar.gz
42-cub3d-14b08c7f6a5fc0efa61af63ef651fd444b00b697.tar.bz2
42-cub3d-14b08c7f6a5fc0efa61af63ef651fd444b00b697.tar.xz
42-cub3d-14b08c7f6a5fc0efa61af63ef651fd444b00b697.tar.zst
42-cub3d-14b08c7f6a5fc0efa61af63ef651fd444b00b697.zip
Nigga be shootin' quick af
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h5
-rw-r--r--inc/cub3d_defines.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index aaf4f55..28dfcfe 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -101,8 +101,8 @@ void ft_draw_heals(t_cub *cl, t_sprite *sprite);
void ft_calc_weaps(t_cub *cl);
void ft_draw_weapon(t_cub *cl, t_sprite *sprite);
void ft_draw_handweap(t_cub *cl);
-void ft_macos_suffer_animation(t_cub *cl);
-void ft_linux_suffer_animation(t_cub *cl);
+void ft_macos_suffer_animation(uint16_t dmg, t_cub *cl);
+void ft_linux_suffer_animation(uint16_t dmg, t_cub *cl);
void *ft_ammo_back_thread(void *vargp);
void *ft_minimap_back_thread(void *vargp);
void *ft_map_thread(void *vargp);
@@ -277,5 +277,6 @@ int8_t ft_switch_weap_one(t_cub *cl);
int8_t ft_switch_weap_two(t_cub *cl);
int8_t ft_switch_weap_three(t_cub *cl);
void ft_shoot(t_cub *cl, uint16_t center);
+int ft_handle_keys(uint8_t i, float old_y, float old_x, t_cub *cl);
# endif
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index f57ee6f..4cb67ea 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -304,6 +304,7 @@ enum
# define FT_WEAP_THREE_STRT_AMMO 24
# define FT_WEAP_MAX_AMMO 1000
# define FT_ENMY_SIGHT_RANGE 7.0
+# define FT_ENMY_DAMAGE_AMOUNT 54
/*
** ====== OTHER ======