-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathso_long.h
51 lines (44 loc) · 1.43 KB
/
so_long.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* so_long.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: equesnel <equesnel@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/13 16:03:21 by equesnel #+# #+# */
/* Updated: 2022/07/27 14:09:25 by equesnel ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef SO_LONG_H
# define SO_LONG_H
# include "libft/libft.h"
# include "mlx_linux/mlx.h"
# include "mlx_linux/mlx_int.h"
# include <fcntl.h>
typedef struct s_data
{
char **map;
char *tmp;
void *mlx;
void *win;
void *floor;
void *wall;
void *heros;
void *chest;
void *exit;
int width;
int height;
int e;
int p;
int c;
int i;
int x;
} t_data;
void parse_map(char *av, t_data *l);
void check_map(t_data *l);
void put_map(t_data *l);
void init_vars(t_data *l);
void play(t_data *l);
int close_win(t_data *l);
void ft_error(t_data *l);
#endif