-
Notifications
You must be signed in to change notification settings - Fork 0
/
so_long.h
64 lines (59 loc) · 1.88 KB
/
so_long.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* so_long.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ebouabba <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/27 14:07:19 by ebouabba #+# #+# */
/* Updated: 2022/04/01 00:51:44 by ebouabba ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef SO_LONG_H
# define SO_LONG_H
# include <stdio.h>
# include <stdlib.h>
# include <fcntl.h>
# include <unistd.h>
# include "mlx.h"
# include "Utils/utils.h"
# include "Get_next_line/get_next_line.h"
typedef struct t_list
{
int e;
int p;
int c;
char **argv;
int i;
int y;
int x;
char *map;
int j;
int count;
char *maps;
char **tab;
char *mlx;
char *window;
char *player;
char *collectible;
char *exit;
char *space;
char *wall;
}t_list;
void ft_split_maps(t_list *ptr);
void check_maps(t_list *ptr);
void check_to_element(t_list *ptr);
void push_image_to_window(t_list *ptr);
int play_game(int key, t_list *ptr);
void put_image(char c, t_list *ptr, int i, int j);
void affichage(t_list *ptr);
void move_player_right(t_list *ptr);
void move_player_left(t_list *ptr);
void move_player_above(t_list *ptr);
void move_player_under(t_list *ptr);
void key_code_0(t_list *ptr);
void key_code_1(t_list *ptr);
void key_code_2(t_list *ptr);
void key_code_13(t_list *ptr);
int ft_exit(t_list *ptr);
#endif