pub struct UpgradeableFighter {
pub attribute_basis: EnumMap<AttributeType, u32>,
/* private fields */
}
Fields§
§attribute_basis: EnumMap<AttributeType, u32>
The base attributes without any equipment, or other boosts
Implementations§
Source§impl UpgradeableFighter
impl UpgradeableFighter
pub fn attributes(&self) -> EnumMap<AttributeType, u32>
pub fn hit_points(&self, attributes: &EnumMap<AttributeType, u32>) -> i64
Trait Implementations§
Source§impl Clone for UpgradeableFighter
impl Clone for UpgradeableFighter
Source§fn clone(&self) -> UpgradeableFighter
fn clone(&self) -> UpgradeableFighter
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 moreAuto Trait Implementations§
impl Freeze for UpgradeableFighter
impl RefUnwindSafe for UpgradeableFighter
impl Send for UpgradeableFighter
impl Sync for UpgradeableFighter
impl Unpin for UpgradeableFighter
impl UnwindSafe for UpgradeableFighter
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