aboutsummaryrefslogtreecommitdiff
path: root/structs.h
diff options
context:
space:
mode:
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_ */