-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparsmap.c
More file actions
57 lines (51 loc) · 1.62 KB
/
parsmap.c
File metadata and controls
57 lines (51 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* parsmap.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rulrike <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/04/24 23:20:30 by rulrike #+# #+# */
/* Updated: 2021/04/24 23:20:33 by rulrike ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft/libft.h"
#include <stdio.h>
#include "parsin.h"
#include <unistd.h>
#include <mlx.h>
void parsNo(char **map, t_all *all, int i)
{
if (all->NO.pt != NULL)
errors2(12);
all->NO.pt = &(map[i][3]);
all->res.keys++;
}
void parsWe(char **map, t_all *all, int i)
{
if (all->WE.pt != NULL)
errors2(12);
all->WE.pt = &(map[i][3]);
all->res.keys++;
}
void parsEa(char **map, t_all *all, int i)
{
if (all->EA.pt != NULL)
errors2(12);
all->EA.pt = &(map[i][3]);
all->res.keys++;
}
void parsSo(char **map, t_all *all, int i)
{
if (all->SO.pt != NULL)
errors2(12);
all->SO.pt = &(map[i][3]);
all->res.keys++;
}
void parsS(char **map, t_all *all, int i)
{
if (all->S.s != NULL)
errors2(12);
all->S.s = &(map[i][2]);
all->res.keys++;
}