-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrimly.h
More file actions
50 lines (44 loc) · 1.47 KB
/
grimly.h
File metadata and controls
50 lines (44 loc) · 1.47 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* grimly.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: passef <passef@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/01/15 19:20:10 by passef #+# #+# */
/* Updated: 2018/01/21 12:28:25 by passef ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GRIMLY_H
# define GRIMLY_H
# include "libft/libft.h"
typedef struct s_env
{
int buff_gnl;
char *line;
size_t i;
int status;
char n1[6];
char n2[6];
char carry[10];
char *map;
size_t map_line;
size_t map_col;
char map_wall;
char map_road;
char map_path;
char map_start;
char map_end;
int map_fd;
} t_env;
typedef struct s_node
{
int data;
struct node *next;
} t_node;
int gnl_grimly(t_env *e, int const fd, char **line);
int get_map_size(t_env *e, int i);
int get_map_params(t_env *e);
void init_grimly(t_env *e);
int get_map(t_env *e);
#endif