「🏗️」 wip: information map
This commit is contained in:
@ -1,23 +1,6 @@
|
||||
char **map = ft_parse_map(av[1]);
|
||||
int i = 0;
|
||||
while (map[i])
|
||||
{
|
||||
ft_putchar_fd('*', 2);
|
||||
ft_putstr_fd(map[i], 2);
|
||||
ft_putchar_fd('*', 2);
|
||||
ft_putchar_fd('\n', 2);
|
||||
i++;
|
||||
}
|
||||
//envoyer de 0 a 3 inclus dans check id texture
|
||||
//envoyer de 4 a 5 inclus dans check rgb format
|
||||
//envoyer de 6 a jusqu a la fin dans check map
|
||||
// convertir tt les whites spaces en simple espace sur les 6 1ere lignes
|
||||
|
||||
// convertir tt les whites spaces en simple espace //prblm avec les tab
|
||||
|
||||
struct typedef s_pars
|
||||
{
|
||||
|
||||
} t_pars;
|
||||
WARNIIIIIINNNNNNNNNNNNNGGG TESTER LES MALLOC A NULL
|
||||
|
||||
//faire struct de coor
|
||||
utiliser la ft pour couleur
|
||||
|
@ -6,12 +6,30 @@
|
||||
/* By: madumerg <madumerg@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/09/12 12:44:52 by madumerg #+# #+# */
|
||||
/* Updated: 2024/09/12 12:54:54 by madumerg ### ########.fr */
|
||||
/* Updated: 2024/09/12 16:49:20 by madumerg ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "cub3d.h"
|
||||
|
||||
int check_info(char **l)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int verif_info_map(char *av)
|
||||
{
|
||||
char **map;
|
||||
char **f_part;
|
||||
|
||||
map = parse_map(av);
|
||||
f_part = info_map(map);
|
||||
if (check_info(f_part) == 1)
|
||||
return (1);
|
||||
if (verif_all_map(map) == 1)
|
||||
return (1);
|
||||
}
|
||||
|
||||
int verif_all_map(char **map)
|
||||
{
|
||||
if (check_char_map(map) == 1)
|
||||
|
Reference in New Issue
Block a user