From de6a945fc804e8da48dcb9a284fdc79db0b9a06e Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Tue, 14 Apr 2026 21:21:07 +0300 Subject: Add some comments to structs.h --- structs.h | 7 ++++--- 1 file 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 +/* 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; }; -- cgit v1.2.3