pub fn loiter(
town: &TownView<'_>,
cell: i32,
home: Option<usize>,
range: i32,
rng: &mut Random,
ground: impl Fn(i32) -> [f32; 3],
rank: &mut dyn FnMut(i32, i32) -> i32,
) -> Option<Loiter>Expand description
Activity 12: choose a spot near something to stand at. cell is the citizen’s cell, home its
home, range the citizen description’s range. ground(cell) returns a cell’s centre on the
ground; rank(a, b) is the path-rank distance.
Original: FUN_14010fa30; the distance is FUN_140008830.