2023-05-03 07:09:06 -04:00
|
|
|
#ifndef MAP_H
|
|
|
|
# define MAP_H
|
|
|
|
# include<sys/types.h>
|
|
|
|
|
|
|
|
// img: 0=Nord, 1=WEST, 2=SOUTH, 3=EAST;
|
|
|
|
|
|
|
|
typedef struct s_map
|
|
|
|
{
|
|
|
|
char **map;
|
2023-05-05 10:34:22 -04:00
|
|
|
void *img_path[4];
|
2023-05-03 07:09:06 -04:00
|
|
|
long long color_bot;
|
|
|
|
long long color_top;
|
2023-05-11 10:25:29 -04:00
|
|
|
int size_x;
|
|
|
|
int size_y;
|
2023-05-05 07:35:52 -04:00
|
|
|
double ply_x;
|
|
|
|
double ply_y;
|
2023-05-04 07:58:30 -04:00
|
|
|
char direction;
|
2023-05-03 07:09:06 -04:00
|
|
|
} t_map;
|
|
|
|
|
2023-05-05 10:34:22 -04:00
|
|
|
void map_freer(t_map *map);
|
|
|
|
|
2023-05-03 07:09:06 -04:00
|
|
|
#endif
|