aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--structs.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/structs.h b/structs.h
index 9b8b13e..bc63408 100644
--- a/structs.h
+++ b/structs.h
@@ -3,6 +3,7 @@
#include <stddef.h>
+/* Top-left corner is x = 0, y = 0 */
struct Position_s {
size_t x;
size_t y;
@@ -11,9 +12,8 @@ typedef struct Position_s Position;
enum MapTile_e {
EMPTY = 0,
- WALL,
+ WALL = 255,
};
-
typedef enum MapTile_e MapTile;
enum Colors_e {
@@ -24,7 +24,7 @@ enum Colors_e {
START_COLOR = 5,
PATH_COLOR = 6,
FRONTIER_COLOR = 7,
- CURSOR_COLOR = 8,
+ CURSOR_COLOR = 8, /* Used in path.c/anim() */
WALL_TEXT_COLOR = 9,
};
@@ -32,6 +32,7 @@ enum Colors_e {
* Use as map[row][column] */
typedef MapTile** Map;
+/* Yeah I'm not sure either */
struct PathNode_s {
Position parent;
};