pub struct Character {Show 13 fields
pub name: String,
pub size: SizeCategory,
pub abilities: AbilityList,
pub ac: i32,
pub ab: i32,
pub base_apr: i32,
pub extra_apr: i32,
pub concealment: i32,
pub defensive_essence: i32,
pub physical_immunity: i32,
pub physical_dmg_reduction: i32,
pub weapon: Weapon,
pub feats: Vec<Feat>,
}Fields§
§name: String§size: SizeCategory§abilities: AbilityList§ac: i32§ab: i32§base_apr: i32§extra_apr: i32§concealment: i32§defensive_essence: i32§physical_immunity: i32§physical_dmg_reduction: i32§weapon: Weapon§feats: Vec<Feat>Implementations§
source§impl Character
impl Character
pub fn builder() -> CharacterBuilder
pub fn total_apr(&self) -> i32
pub fn has_feat(&self, feat: Feat) -> bool
pub fn has_blind_fight(&self) -> bool
pub fn has_epic_dodge(&self) -> bool
pub fn has_bane_of_enemies(&self) -> bool
pub fn has_overwhelming_critical(&self) -> bool
pub fn has_weapon_spec(&self) -> bool
pub fn has_epic_weapon_spec(&self) -> bool
pub fn is_dual_wielding(&self) -> bool
pub fn is_crit_immune(&self) -> bool
pub fn atk_ab(&self, atk_no: i32) -> Option<AttackInfo>
pub fn weapon_crit_multiplier(&self) -> i32
pub fn weapon_threat_range(&self) -> i32
pub fn is_weapon_twohanded(&self) -> bool
pub fn damage_immunity(&self, dmg_type: DamageType) -> i32
pub fn damage_reduction(&self, dmg_type: DamageType) -> i32
pub fn damage_resistance(&self, dmg_type: DamageType) -> i32
pub fn weapon_string(&self) -> String
Trait Implementations§
source§impl<'de> Deserialize<'de> for Character
impl<'de> Deserialize<'de> for Character
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Character> for CharacterBuilder
impl From<Character> for CharacterBuilder
Auto Trait Implementations§
impl RefUnwindSafe for Character
impl Send for Character
impl Sync for Character
impl Unpin for Character
impl UnwindSafe for Character
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