summaryrefslogtreecommitdiff
path: root/inc/cell.h
blob: eceb45cfc2c15d890769ccfdc8a6d54bfd8a3088 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

typedef struct Cell Cell;
struct Cell {
	int id;
	int x;
	int y;
	int width;
	int height;
	int *data;
	Cell *next;
};

extern float g_shake;

Cell *cell_load(const char *pattern, int id, int x, int y);
void cell_destroy(Cell *this, bool recurse);
void cell_draw(Cell *this, int x, int y);
int2 cell_find(Cell *this, int tile);