diff options
| -rw-r--r-- | structs.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; }; |
