diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-14 21:41:33 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-14 21:41:33 +0300 |
| commit | db5320aa188d773c8edc32eee844127457ef280c (patch) | |
| tree | 8e673cdda6c78555542bf04605c5af45d49d3062 /structs.h | |
| parent | de6a945fc804e8da48dcb9a284fdc79db0b9a06e (diff) | |
| download | astar-db5320aa188d773c8edc32eee844127457ef280c.tar.xz | |
Improve the Path type
Diffstat (limited to 'structs.h')
| -rw-r--r-- | structs.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -32,11 +32,9 @@ enum Colors_e { * Use as map[row][column] */ typedef MapTile** Map; -/* Yeah I'm not sure either */ -struct PathNode_s { - Position parent; -}; -typedef struct PathNode_s PathNode; -typedef PathNode** Path; +/* A path is a 2D array, in which for every tile we store the Position of a + * tile we came from. To get the full path you have to follow it from end + * to start */ +typedef Position** Path; #endif /* STRUCTS_H_ */ |
