pub struct BattleFighter {
pub is_companion: bool,
pub level: u16,
pub class: Class,
pub attributes: EnumMap<AttributeType, u32>,
pub max_hp: i64,
pub current_hp: i64,
pub equip: EquipmentEffects,
pub portal_dmg_bonus: f64,
pub rounds_started: u32,
pub rounds_in_1v1: u32,
pub class_effect: ClassEffect,
}
Fields§
§is_companion: bool
§level: u16
§class: Class
§attributes: EnumMap<AttributeType, u32>
§max_hp: i64
§current_hp: i64
§equip: EquipmentEffects
§portal_dmg_bonus: f64
§rounds_started: u32
The total amount of rounds this fighter has started (tried to do an attack)
rounds_in_1v1: u32
The amount of turns this player has been in the current 1v1 fight
class_effect: ClassEffect
Implementations§
Source§impl BattleFighter
impl BattleFighter
pub fn from_monster(monster: &Monster) -> Self
pub fn from_upgradeable(char: &UpgradeableFighter) -> Self
pub fn from_squad(squad: &PlayerFighterSquad) -> Vec<Self>
pub fn reset(&mut self)
Trait Implementations§
Source§impl Clone for BattleFighter
impl Clone for BattleFighter
Source§fn clone(&self) -> BattleFighter
fn clone(&self) -> BattleFighter
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BattleFighter
impl Debug for BattleFighter
Auto Trait Implementations§
impl Freeze for BattleFighter
impl RefUnwindSafe for BattleFighter
impl Send for BattleFighter
impl Sync for BattleFighter
impl Unpin for BattleFighter
impl UnwindSafe for BattleFighter
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