diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-14 21:21:07 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-14 21:21:07 +0300 |
| commit | de6a945fc804e8da48dcb9a284fdc79db0b9a06e (patch) | |
| tree | 550e4ff248b841a69ba24cb21913e7dc2ac440b8 /structs.h | |
| parent | d9357737bcd05230c474814f18f90554bc32b12b (diff) | |
| download | astar-de6a945fc804e8da48dcb9a284fdc79db0b9a06e.tar.xz | |
Add some comments to structs.h
Diffstat (limited to 'structs.h')
| -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; }; |
