diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-28 20:36:49 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-28 20:36:49 +0100 |
commit | fc792e8616d54defb50d26ed65b99cf91c18fe39 (patch) | |
tree | d775f0c586c136da0a9400c195bd4374811f99e4 /inc | |
parent | L is now crapaud and you can pass through :^) (diff) | |
download | 42-cub3d-fc792e8616d54defb50d26ed65b99cf91c18fe39.tar.gz 42-cub3d-fc792e8616d54defb50d26ed65b99cf91c18fe39.tar.bz2 42-cub3d-fc792e8616d54defb50d26ed65b99cf91c18fe39.tar.xz 42-cub3d-fc792e8616d54defb50d26ed65b99cf91c18fe39.tar.zst 42-cub3d-fc792e8616d54defb50d26ed65b99cf91c18fe39.zip |
GNL fix
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d.h | 11 | ||||
-rw-r--r-- | inc/cub3d_defines.h | 25 |
2 files changed, 26 insertions, 10 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h index d72094c..4f28a84 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -18,16 +18,6 @@ #include <stddef.h> #include <stdint.h> -/* -** ret vals: -** 1: no argv[1] -** 2: failed structs init -** 3: failed mlx init -** 4: map error -** 5: no map -** 6: read error -*/ - int8_t ft_init_cub3d(t_cub **clist); t_map *ft_init_map(void); void ft_wall_tex_init(t_cub *clist); @@ -94,5 +84,6 @@ void ft_draw_life_bar(size_t map_w, t_cub *cl); void ft_music(t_cub *cl); void ft_draw_sprite(t_cub *cl, int i); +int8_t ft_warp_level(t_cub *cl); # endif diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index 5a8112b..8b15838 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -14,6 +14,31 @@ # define CUB3D_DEFINES_H /* +** ====== RETURN VALUES ====== +*/ + +enum retvals +{ + RET_FINE, + RET_NO_ARGV, + RET_FAILED_STRUCTS, + RET_FAILED_MLX, + RET_MAP_ERROR, + RET_NO_MAP, + RET_READ_ERROR +}; + +/* +** ret vals: +** 1: no argv[1] +** 2: failed structs init +** 3: failed mlx init +** 4: map error +** 5: no map +** 6: read error +*/ + +/* ** ====== KEYS ====== */ |