//! Construct a new Dijkstra map, ready to run. 
Construct a new Dijkstra map, ready to run.
Construct a new Dijkstra map ready to run .
pub fn new(map: &Map) -> DijkstraMap {
        let len =  map.width * map.height;
        let tiles = vec![MAX; len];
        let mut d = DijkstraMap {
            tiles: tiles,
            size_x: map.width,
            size_y: map.height,
            max_depth: len as f32,
        };
        d.build(map);
        d
    }
pub fn new ( map : & Map ) -> DijkstraMap { let len = map . width * map . height ; let tiles = vec ! [ MAX len ] ; let mut d = DijkstraMap { tiles : tiles , size_x : map . width , size_y : map . height , max_depth : len as f32 , } ; d . build ( map ) ; d }
Construct a new Dijkstra map, ready to run.
Construct a new Dijkstra map ready to run .
map
&Map