pub struct Player { /* private fields */ }
Implementations§
Source§impl Player
impl Player
pub fn new() -> Player
pub fn tick( &mut self, delta: f64, level: &impl LevelQuery, input: &mut impl InputQuery, ) -> Vec<PlayerEvent>
pub fn position(&self) -> Vector3D<f32>
pub fn speed(&self) -> Vector3D<f32>
pub fn level_col(&self, width: usize) -> isize
pub fn level_row(&self) -> isize
pub fn dist(&self) -> f64
pub fn from_level_coord(col: isize, row: isize, width: usize) -> Vector3D<f64>
pub fn set_steer_factor(&mut self, sensibility: f64)
pub fn backing_camera_blend(&self) -> f64
pub fn speed_factor(&self, level: &impl LevelQuery) -> f64
pub fn score(&self) -> i32
pub fn set_best_score(&mut self, best_score: i32)
pub fn best_row(&self) -> isize
pub fn best_dist(&self) -> f64
pub fn is_boosting(&self) -> bool
pub fn time_progress_done(&self, level: &impl LevelQuery) -> f64
pub fn time_progress_total(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Player
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnwindSafe for Player
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