aboutsummaryrefslogtreecommitdiff
path: root/structs.h
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-04-14 21:41:33 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-04-14 21:41:33 +0300
commitdb5320aa188d773c8edc32eee844127457ef280c (patch)
tree8e673cdda6c78555542bf04605c5af45d49d3062 /structs.h
parentde6a945fc804e8da48dcb9a284fdc79db0b9a06e (diff)
downloadastar-db5320aa188d773c8edc32eee844127457ef280c.tar.xz
Improve the Path type
Diffstat (limited to 'structs.h')
-rw-r--r--structs.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/structs.h b/structs.h
index bc63408..5798b9e 100644
--- a/structs.h
+++ b/structs.h
@@ -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_ */