pub struct MoveContext {
pub is_critical: bool,
pub damage: u16,
pub move_missed: bool,
pub last_damage: u16,
}Expand description
Per-move scratch shared across a move’s event chain (design §3.2): the crit flag, the rolled damage, the miss flag, and the last damage dealt (the canonical home for Counter/Bide reads — design §9 open question).
Fields§
§is_critical: boolWhether the in-flight move is a critical hit.
damage: u16The damage computed for the in-flight move.
move_missed: boolWhether the in-flight move missed.
last_damage: u16The last damage actually dealt this turn (Counter/Bide read this).
Trait Implementations§
Source§impl Clone for MoveContext
impl Clone for MoveContext
Source§fn clone(&self) -> MoveContext
fn clone(&self) -> MoveContext
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 moreimpl Copy for MoveContext
Source§impl Debug for MoveContext
impl Debug for MoveContext
Source§impl Default for MoveContext
impl Default for MoveContext
Source§fn default() -> MoveContext
fn default() -> MoveContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MoveContext
impl RefUnwindSafe for MoveContext
impl Send for MoveContext
impl Sync for MoveContext
impl Unpin for MoveContext
impl UnsafeUnpin for MoveContext
impl UnwindSafe for MoveContext
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