home · contact · privacy
Maps are always squares, therefore define only their edge lengths.
[plomrogue] / src / common / map.h
1 /* src/common/map.h
2  *
3  * Game map.
4  */
5
6 #ifndef MAP_H
7 #define MAP_H
8
9 #include <stdint.h> /* uint16_t */
10
11
12
13 struct Map
14 {
15     char * cells;            /* sequence of bytes encoding map cells */
16     uint16_t length;         /* map's edge length */
17 };
18
19
20
21 #endif