35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* 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 */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#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;
|
|
char *img_path[4];
|
|
long long color_bot;
|
|
long long color_top;
|
|
int size_x;
|
|
int size_y;
|
|
double ply_x;
|
|
double ply_y;
|
|
char direction;
|
|
} t_map;
|
|
|
|
void map_freer(t_map *map);
|
|
|
|
#endif
|