home · contact · privacy
Add auto-mapping / map memory.
[plomrogue] / src / server / field_of_view.h
1 /* src/server/field_of_view.h
2  *
3  * Generate field of view maps.
4  */
5
6
7
8 #ifndef FIELD_OF_VIEW_H
9 #define FIELD_OF_VIEW_H
10
11 #include <stdint.h> /* uint8_t */
12 struct Thing;
13
14
15
16 /* States that cells in the field of view map may be in. */
17 enum fov_cell_states {
18     HIDDEN = 0x00,
19     VISIBLE = 0x01
20 };
21
22 /* Build "t"'s field of view and update its map memory with the result. */
23 extern void build_fov_map(struct Thing * t);
24
25
26
27 #endif