diff options
Diffstat (limited to 'DijkstraPathfinder.h')
-rw-r--r-- | DijkstraPathfinder.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/DijkstraPathfinder.h b/DijkstraPathfinder.h index eddb26f..5fb1e21 100644 --- a/DijkstraPathfinder.h +++ b/DijkstraPathfinder.h @@ -22,6 +22,11 @@ private: unsigned int distance = -1; XY parent; }; + struct Neighbor { + unsigned int distance = -1; + XY position; + }; + Node & map_get(const XY &); std::unordered_map<XY, Node> map; |