blob: 1a9203f19a1012d8a21c6865d11603ae26df2396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#define HZ2MS(hz) (1000/(hz))
/*
* alloc
*/
void *emalloc(ulong);
void *erealloc(void*, ulong);
Image *eallocimage(Display*, Rectangle, ulong, int, ulong);
/*
* util
*/
char *cell2coords(Point2);
Point2 coords2cell(char*);
int gettile(Map*, Point2);
void settile(Map*, Point2, int);
void settiles(Map*, Point2, int, int, int);
void fprintmap(int, Map*);
int shiplen(int);
|