map_model::pathfind

Function zone_cost

Source
pub(crate) fn zone_cost(
    mvmnt: MovementID,
    constraints: PathConstraints,
    map: &Map,
) -> Duration
Expand description

Heavily penalize crossing into an access-restricted zone that doesn’t allow this mode.