-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvisual.h
88 lines (81 loc) · 2.66 KB
/
visual.h
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* visual.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ablizniu <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/08/07 21:49:25 by ablizniu #+# #+# */
/* Updated: 2018/08/07 21:49:28 by ablizniu ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef VISUAL_H
# define VISUAL_H
# include "libft/libft.h"
# include "mlx.h"
# include <limits.h>
# include <errno.h>
# include <stdio.h>
# include <math.h>
# include <time.h>
# define W 1200
# define H 1000
typedef struct s_image
{
char *data_buff;
void *mlx_ptr;
void *mlx_window;
void *image_ptr;
int bpp;
int size_line;
int endian;
int current_x;
int current_y;
} t_image;
typedef struct s_filler
{
int k;
int i_0;
int i_1;
int j_0;
int j_1;
int fuck;
int size_of_cell_x;
int size_of_cell_y;
int good_for_output;
int fd;
int len_x;
int len_y;
char unsigned me;
char unsigned enemy;
int x;
int o;
char **map;
struct s_image *image;
} t_filler;
t_image g_image;
void kostil_5(t_filler **filler);
void kostil_4(t_filler **filler);
int kostil_3(t_filler **filler, char *buff);
void kostil_2(t_filler **filler, char *buff, int *i);
void kostil_1(t_filler **filler, char *buff, int *i);
void k_1(t_filler **filler, int *k, int *i);
void v_1(t_filler **filler);
void v_2(t_filler **filler);
void v_3(t_filler **filler);
void output_score(t_filler **filler);
void final_score(t_filler **filler);
void free_filler(t_filler **filler);
int exit_1(int keycode, t_filler **filler);
int filler_funk(t_filler **filler);
void init_filler(t_filler **filler);
void size_for_field(t_filler **filler);
void map_creator(t_filler **filler, char *line);
int read_validator(char *line,
t_filler **filler);
void writing_cel(int color,
t_filler **filler, t_image *image);
void writing_field(t_filler **filler, t_image *image);
void init_(t_image *image);
int read_token_1(t_filler **filler);
#endif