aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 13:54:11 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 13:54:11 +0200
commita6dbe3b5710f719b3f02ba0044a72c64ee4155ac (patch)
treec1f64e3cfec00bd5b20d9f624370644fc8e62ef4 /inc
parentBetter sword (diff)
download42-cub3d-a6dbe3b5710f719b3f02ba0044a72c64ee4155ac.tar.gz
42-cub3d-a6dbe3b5710f719b3f02ba0044a72c64ee4155ac.tar.bz2
42-cub3d-a6dbe3b5710f719b3f02ba0044a72c64ee4155ac.tar.xz
42-cub3d-a6dbe3b5710f719b3f02ba0044a72c64ee4155ac.tar.zst
42-cub3d-a6dbe3b5710f719b3f02ba0044a72c64ee4155ac.zip
Bug fix
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index 84d9ea1..50f2bf3 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -17,6 +17,7 @@
#include <cub3d_structs.h>
#include <stddef.h>
#include <stdint.h>
+#include <time.h>
/*
** ====== STRUCTS ======
@@ -229,6 +230,14 @@ void *ft_sfx_weapon_three_fire_thread(void *vargp);
void *ft_sfx_ooa_thread(void *vargp);
/*
+** ====== TIMINGS ======
+*/
+
+float ft_clock_to_ms(clock_t ticks);
+void ft_handle_firing(clock_t dt, t_cub *cl);
+void ft_get_fps_count(clock_t delta_time, t_cub *cl);
+
+/*
** ====== DELETION ======
*/
@@ -246,14 +255,12 @@ int ft_exit(uint8_t exit_code, t_cub *clist);
void ft_set_minimap_scale(t_cub *clist);
void ft_enable_music(t_cub *cl);
-void ft_music_fork(char **mcmd_words, char *const envp[]);
int8_t ft_save_to_bmp(t_cub *cl);
int8_t ft_warp_level(char *path, t_cub *cl);
uint32_t ft_rgb_to_hex(float dist, t_rgb rgb, t_cub *cl);
t_bmp_rgb ft_hex_to_rgb(uint32_t color);
uint32_t ft_darken(t_rgb rgb, t_cub *cl);
void ft_death_screen(t_cub *cl);
-void ft_get_fps_count(clock_t delta_time, t_cub *cl);
void ft_find_item(t_player *pl, t_map *ml, t_cub *cl);
int8_t ft_switch_weap_one(t_cub *cl);
int8_t ft_switch_weap_two(t_cub *cl);