Trait parthia_lib::unit::Unit[][src]

pub trait Unit: Sized {
    fn attack(
        &mut self,
        enemy: &mut Self,
        atk_weapon: dyn Weapon<Self>,
        def_weapon: dyn Weapon<Self>,
        atk_item: dyn Item<Self>,
        def_item: dyn Item<Self>
    ); }

A unit in Fire Emblem that can attack and defend.

Required methods

fn attack(
    &mut self,
    enemy: &mut Self,
    atk_weapon: dyn Weapon<Self>,
    def_weapon: dyn Weapon<Self>,
    atk_item: dyn Item<Self>,
    def_item: dyn Item<Self>
)
[src]

Attacks the target with the given weapon, updating both this unit and the target.

Loading content...

Implementors

Loading content...