-
Notifications
You must be signed in to change notification settings - Fork 1
/
map.h
31 lines (25 loc) · 1.21 KB
/
map.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* map.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: schaaban <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/12/05 09:15:50 by schaaban #+# #+# */
/* Updated: 2017/12/08 05:03:47 by schaaban ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MAP_H
# define MAP_H
# include <stdint.h>
typedef struct s_map
{
int map_size;
uint16_t *tab;
} t_map;
t_map **map_creator(int count);
void map_init(t_map *self, int map_size);
int map_add_tetri(t_map *self, t_tetri *tetri);
int map_rem_tetri(t_map *self, t_tetri *tetri);
void map_dtor(t_map *self);
#endif