pub struct MoveDef {Show 33 fields
pub id: MoveId,
pub startup: u8,
pub active: u8,
pub recovery: u8,
pub damage: i32,
pub chip: i32,
pub hitstun: u8,
pub blockstun: u8,
pub hitstop: u8,
pub blockstop: u8,
pub pushback_hit: i32,
pub pushback_block: i32,
pub level: HitLevel,
pub knockdown: bool,
pub launch: i32,
pub cancel: CancelRule,
pub invuln: Invuln,
pub hitboxes: &'static [TimedBox],
pub vel_x: i32,
pub vel_frames: u8,
pub vel_y: i32,
pub gravity_override: Option<i32>,
pub land_recovery: u8,
pub projectile: Option<ProjectileDef>,
pub projectile_guard: bool,
pub meter_on_hit: i32,
pub meter_cost: i32,
pub gauge_cost: i32,
pub throw: ThrowKind,
pub followups: &'static [Followup],
pub feintable: bool,
pub pass_through: bool,
pub channel: Option<ChannelDef>,
}Fields§
§id: MoveId§startup: u8§active: u8§recovery: u8§damage: i32§chip: i32§hitstun: u8§blockstun: u8§hitstop: u8§blockstop: u8§pushback_hit: i32§pushback_block: i32§level: HitLevel§knockdown: bool§launch: i32§cancel: CancelRule§invuln: Invuln§hitboxes: &'static [TimedBox]§vel_x: i32Horizontal velocity applied on frame 0 (dash attacks, DP rise).
vel_frames: u8Frames the horizontal velocity lasts on the ground. 0 = whole move.
vel_y: i32§gravity_override: Option<i32>§land_recovery: u8Extra landing recovery if this move leaves the ground (the uppercut tax).
projectile: Option<ProjectileDef>§projectile_guard: boolActive hitboxes on this move destroy opposing projectiles.
meter_on_hit: i32§meter_cost: i32§gauge_cost: i32Character gauge spent on start (EX, revolver chambers).
throw: ThrowKind§followups: &'static [Followup]§feintable: boolFL+ST during startup cancels this special to nothing.
pass_through: boolMovement special that passes through the opponent’s pushbox.
channel: Option<ChannelDef>Implementations§
Source§impl MoveDef
impl MoveDef
pub fn total_frames(&self) -> u16
pub fn first_active(&self) -> u16
pub fn last_active(&self) -> u16
pub fn is_active(&self, frame: u16) -> bool
pub fn in_startup(&self, frame: u16) -> bool
pub fn in_recovery(&self, frame: u16) -> bool
pub fn finished(&self, frame: u16) -> bool
Sourcepub fn advantage_on_hit(&self) -> i32
pub fn advantage_on_hit(&self) -> i32
Advantage if the move connects on its first active frame.
pub fn advantage_on_block(&self) -> i32
pub fn hitboxes_on(&self, frame: u16) -> impl Iterator<Item = LocalBox> + '_
pub fn followup_for(&self, button: Btn, frame: u16) -> Option<MoveId>
pub fn is_throw(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MoveDef
impl RefUnwindSafe for MoveDef
impl Send for MoveDef
impl Sync for MoveDef
impl Unpin for MoveDef
impl UnsafeUnpin for MoveDef
impl UnwindSafe for MoveDef
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