pub struct DMGFunction {}Expand description
higher level functions to compute damage from statables
Implementations§
Source§impl DMGFunction
impl DMGFunction
Sourcepub fn calculate_damage(
element: Element,
damage_type: DamageType,
scaling: BaseScaling,
amplifier: Amplifier,
instances: f32,
motion_value: f32,
character: Box<&dyn Statable>,
buffs: Option<&StatTable>,
) -> f32
pub fn calculate_damage( element: Element, damage_type: DamageType, scaling: BaseScaling, amplifier: Amplifier, instances: f32, motion_value: f32, character: Box<&dyn Statable>, buffs: Option<&StatTable>, ) -> f32
higher level function that applys the full damage formula to a statable
Auto Trait Implementations§
impl Freeze for DMGFunction
impl RefUnwindSafe for DMGFunction
impl Send for DMGFunction
impl Sync for DMGFunction
impl Unpin for DMGFunction
impl UnwindSafe for DMGFunction
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