1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use crate::{graph::Graph, path::PathFinding};
use crate::grid::Grid;
use crate::node::Node;
pub struct HierarchicalAStar {
pub heuristic: Box<dyn Fn(usize, usize, &Graph) -> f32>,
}
impl PathFinding for HierarchicalAStar {
fn graph(&self, _source: Node, _target: Node, _graph: &Graph) -> Graph {
return Graph::from(Vec::new());
}
fn grid(&self, _source: (usize, usize), _target: (usize, usize), _grid: &Grid) -> Graph {
return Graph::from(Vec::new());
}
}