diff options
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_ */ |
