Add getters to conflict avoidance.
This commit is contained in:
parent
d2c1e6d422
commit
29ef8eb39d
2 changed files with 5 additions and 1 deletions
|
|
@ -93,6 +93,10 @@ impl ConflictAvoidance {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn get_paths(&self) -> &[Vec<PathField>] {
|
||||
&self.belts
|
||||
}
|
||||
|
||||
pub fn remove_conflict(&mut self) -> bool {
|
||||
let mut conflicts: Map<usize> = Map::new(self.map.width, self.map.height);
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ use crate::{
|
|||
use std::ops::Index;
|
||||
use termcolor::{Color, ColorSpec};
|
||||
|
||||
use self::common::{print_map, Position, PositionType};
|
||||
use self::common::{print_map, PathField, Position, PositionType};
|
||||
|
||||
pub mod brute_force;
|
||||
pub mod common;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue