-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfillit_structs.h
33 lines (29 loc) · 1.2 KB
/
fillit_structs.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fillit_structs.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kmira <kmira@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/05/13 15:18:38 by kmira #+# #+# */
/* Updated: 2019/05/20 14:58:20 by kmira ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FILLIT_STRUCTS_H
# define FILLIT_STRUCTS_H
typedef struct s_piece
{
unsigned short mask[4];
int type;
int width;
int height;
int row_loc;
int col_loc;
int id;
struct s_piece *last;
} t_tetrimino;
enum e_myerrors {
INVALID_FILE_FORMAT = -2,
INVALID_PIECE_FORMAT = -3,
};
#endif