2023-05-16 13:12:54 -04:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* map.h :+: :+: :+: */
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: cchauvet <marvin@42.fr> +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
/* Created: 2023/05/16 14:50:41 by cchauvet #+# #+# */
|
|
|
|
/* Updated: 2023/05/16 14:50:42 by cchauvet ### ########.fr */
|
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
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-16 07:05:02 -04:00
|
|
|
char *img_path[4];
|
2023-05-03 07:09:06 -04:00
|
|
|
long long color_bot;
|
|
|
|
long long color_top;
|
2023-05-16 13:12:54 -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
|