diff options
Diffstat (limited to 'src/list.rs')
-rw-r--r-- | src/list.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/list.rs b/src/list.rs index a429ab2..c22c229 100644 --- a/src/list.rs +++ b/src/list.rs @@ -34,6 +34,12 @@ impl List { } } + pub fn give_destination(&mut self, destination : Location) { + for i in 0..self.men.len() { + self.men[i].give_destination(destination) + } + } + fn get_free_locations(&mut self, location : Location) -> Vec<(Location, usize)> { let mut potential_locations = location.neighbours(Vec::new()); |