#ifndef MAPUTILS_H
# define MAPUTILS_H

# include <stdbool.h>

// TODO: mettre ca dans un autre fichier
# define RESET		"\033[0m"
# define RED		"\033[31m"
# define GREEN		"\033[32m"
# define YELLOW		"\033[33m"
# define BLUE		"\033[34m"
# define MAGENTA	"\033[35m"
# define CYAN		"\033[36m"
# define BOLD		"\033[1m"

typedef struct s_mapdata
{
	char	*filename;
	char	*NO_texture;
	char	*SO_texture;
	char	*WE_texture;
	char	*EA_texture;
	int		f_color;
	int		c_color;
	int		mapheight;
	char	**map;
	char	**mapflood;
	int		skipped_lines;
	bool	isvalid;
	char	error[1024];
}	t_mapdata;

bool	check_cubfile(char *filename, t_mapdata *map);

#endif
