[][src]Struct brawllib_rs::high_level_fighter::HighLevelFrame

pub struct HighLevelFrame {
    pub hurt_boxes: Vec<HighLevelHurtBox>,
    pub hit_boxes: Vec<HighLevelHitBox>,
    pub x_pos: f32,
    pub y_pos: f32,
    pub interruptible: bool,
    pub edge_slide: EdgeSlide,
    pub reverse_direction: bool,
    pub airbourne: bool,
    pub landing_lag: bool,
    pub ecb: ECB,
    pub hitbox_sets_rehit: [bool; 10],
    pub slope_contour_stand: Option<i32>,
    pub slope_contour_full: Option<(i32, i32)>,
    pub rumble: Option<(i32, i32)>,
    pub rumble_loop: Option<(i32, i32)>,
    pub grab_interrupt_damage: Option<i32>,
    pub throw: Option<HighLevelThrow>,
    pub x_vel_modify: VelModify,
    pub y_vel_modify: VelModify,
    pub x_vel_temp: f32,
    pub y_vel_temp: f32,
}

Fields

hurt_boxes: Vec<HighLevelHurtBox>hit_boxes: Vec<HighLevelHitBox>x_pos: f32y_pos: f32interruptible: booledge_slide: EdgeSlidereverse_direction: boolairbourne: boollanding_lag: boolecb: ECBhitbox_sets_rehit: [bool; 10]slope_contour_stand: Option<i32>slope_contour_full: Option<(i32, i32)>rumble: Option<(i32, i32)>rumble_loop: Option<(i32, i32)>grab_interrupt_damage: Option<i32>throw: Option<HighLevelThrow>x_vel_modify: VelModify

Affects the next frames velocity

y_vel_modify: VelModify

Affects the next frames velocity

x_vel_temp: f32

Does not affect the next frames velocity

y_vel_temp: f32

Does not affect the next frames velocity

Methods

impl HighLevelFrame[src]

pub fn hit_box_extent(&self) -> Extent[src]

Furthest point of a hitbox, starting from the bps

pub fn hurt_box_extent(&self) -> Extent[src]

Furthest point of a hurtbox, starting from the bps

pub fn hurt_box_vulnerable_extent(&self) -> Option<Extent>[src]

Furthest point of a hurtbox, starting from the bps, excludes intangible and invincible hurtboxes Returns None when there are no vulnerable hurtboxes

Trait Implementations

impl Clone for HighLevelFrame[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for HighLevelFrame[src]

impl Serialize for HighLevelFrame[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]