struct FightInfo {
configs: ConfigSet,
matchup: (PlayerId, PlayerId),
round: u64,
unit_counts: UnitCounts,
power_mode: [f64; 2],
lightsabers: [f64; 6],
}Fields§
§configs: ConfigSet§matchup: (PlayerId, PlayerId)§round: u64§unit_counts: UnitCounts§power_mode: [f64; 2]power mode for Player 1, then Player 2
lightsabers: [f64; 6]rgb for Player 1, then Player 2
Implementations§
Source§impl FightInfo
impl FightInfo
Sourcefn mod_attack(
&self,
player: PlayerInMatchup,
base: u64,
enemy_armor: u64,
bonus_damage: u64,
) -> u64
fn mod_attack( &self, player: PlayerInMatchup, base: u64, enemy_armor: u64, bonus_damage: u64, ) -> u64
an enemy_armor of 0 means the base damage will not be modified.
bonus damage completely ignores armor.
fn mod_max_health(&self, player: PlayerInMatchup, base: u64) -> u64
fn mod_armor(&self, player: PlayerInMatchup, base: u64) -> u64
fn mod_range(&self, player: PlayerInMatchup, base: u64) -> u64
Auto Trait Implementations§
impl Freeze for FightInfo
impl !RefUnwindSafe for FightInfo
impl Send for FightInfo
impl Sync for FightInfo
impl Unpin for FightInfo
impl !UnwindSafe for FightInfo
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