pub struct ScenarioEntry {
pub bucket: u32,
pub map: String,
pub map_width: usize,
pub map_height: usize,
pub start: (usize, usize),
pub goal: (usize, usize),
pub optimal_length: f64,
}Expand description
One agent of a Moving AI .scen file.
Fields§
§bucket: u32The bucket, which groups entries of similar difficulty.
map: StringThe map file name, as written in the scenario.
map_width: usizeThe width of the map the entry was made for.
map_height: usizeThe height of the map the entry was made for.
start: (usize, usize)The start cell (x, y); (0, 0) is the top left.
goal: (usize, usize)The goal cell (x, y).
optimal_length: f64The optimal single-agent path length the file reports. Computed with octile
(8-connected) moves, so on a 4-connected Grid it is only a lower bound.
Trait Implementations§
Source§impl Clone for ScenarioEntry
impl Clone for ScenarioEntry
Source§impl Debug for ScenarioEntry
impl Debug for ScenarioEntry
Source§impl PartialEq for ScenarioEntry
impl PartialEq for ScenarioEntry
impl StructuralPartialEq for ScenarioEntry
Auto Trait Implementations§
impl Forget for ScenarioEntry
impl Freeze for ScenarioEntry
impl Move for ScenarioEntry
impl RefUnwindSafe for ScenarioEntry
impl Send for ScenarioEntry
impl Sync for ScenarioEntry
impl Unpin for ScenarioEntry
impl UnsafeUnpin for ScenarioEntry
impl UnwindSafe for ScenarioEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more