euv_core/game/algorithms/pathfinding/enum.rs
1/// Neighbor connectivity policy for 2D grid pathfinding.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
3pub enum GridConnectivity {
4 /// Four cardinal neighbors (up, down, left, right).
5 FourWay,
6 /// Eight cardinal and diagonal neighbors with strict no-corner-cutting.
7 #[default]
8 EightWay,
9}
10
11/// Shortest-path search algorithm selectable on `GridPathfinder`.
12#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
13pub enum GridSearchAlgorithm {
14 /// Heuristic A* search with admissible Manhattan or Octile heuristic.
15 #[default]
16 AStar,
17 /// Uninformed Dijkstra shortest-path search.
18 Dijkstra,
19 /// Jump Point Search pruning symmetric paths on uniform-cost grids.
20 JumpPointSearch,
21}