Add getters to conflict avoidance.

This commit is contained in:
hal8174 2024-02-24 17:18:42 +01:00
parent d2c1e6d422
commit 29ef8eb39d
2 changed files with 5 additions and 1 deletions

View file

@ -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);

View file

@ -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;