aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h1
-rw-r--r--inc/cub3d_structs.h11
2 files changed, 7 insertions, 5 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index 81692e4..a0e48fc 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -58,6 +58,7 @@
*/
int8_t ft_init_cub3d(t_cub **clist);
+t_map *ft_init_map(void);
void ft_hooks_and_loops(t_win *wl, t_cub *cl);
int ft_key_event(int keycode, t_cub *clist);
int ft_click_close(int keycode, t_cub *clist);
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index f40a438..08fc814 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -68,11 +68,7 @@ typedef struct s_ray
uint8_t hit;
} t_ray;
-/* typedef struct s_map */
-/* { */
-/* } t_map; */
-
-typedef struct s_cub
+typedef struct s_map
{
char *no_tex_path;
char *so_tex_path;
@@ -89,9 +85,14 @@ typedef struct s_cub
size_t map_start;
uint8_t isspawn;
uint8_t scale;
+} t_map;
+
+typedef struct s_cub
+{
uint8_t minimap;
struct s_win *wlist;
struct s_player *plist;
+ struct s_map *mlist;
struct s_ray rlist;
struct s_img img;
struct s_rgb f_rgb;