pub struct AutoNavigator { /* private fields */ }Implementations§
pub fn plan(state: &GameState, goal_x: f32, goal_y: f32) -> Option<Self>
pub fn active(&self) -> bool
pub fn replan(&mut self, state: &GameState) -> bool
pub fn note_progress(&mut self, px: f32, py: f32) -> bool
pub fn steer( &mut self, px: f32, py: f32, pz: f32, state: &GameState, ) -> Option<(f32, f32, f32, bool)>
pub fn goal_x(&self) -> f32
pub fn goal_y(&self) -> f32
pub fn goal_z(&self) -> f32
Trait Implementations§
Source§fn clone(&self) -> AutoNavigator
fn clone(&self) -> AutoNavigator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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