Skip to main content

IAIBattleSimulatorMethods

Trait IAIBattleSimulatorMethods 

Source
pub trait IAIBattleSimulatorMethods: IAIBattleSimulator {
Show 23 methods // Provided methods fn get_kill(self) -> f32 { ... } fn get_dead(self) -> f32 { ... } fn get_expectation(self) -> f32 { ... } fn get_attack(self) -> f32 { ... } fn get_follow(self) -> f32 { ... } fn get_power(self) -> i32 { ... } fn get_hit(self) -> f32 { ... } fn get_offense_battle_times(self) -> i32 { ... } fn get_defense_battle_times(self) -> i32 { ... } fn ctor(self) { ... } fn calculate( self, offense: impl Into<Unit>, defense: impl Into<Unit>, x: impl Into<i32>, z: impl Into<i32>, range: impl Into<i32>, item_index: impl Into<i32>, skill: impl Into<SkillData>, defense_x: impl Into<i32>, defense_z: impl Into<i32>, is_remove: impl Into<bool>, battle_count: impl Into<i32>, ) { ... } fn is_power0_attack(self) -> bool { ... } fn calculate_battle_info( self, offense: impl Into<Unit>, defense: impl Into<Unit>, x: impl Into<i32>, z: impl Into<i32>, range: impl Into<i32>, unit_item: impl Into<UnitItem>, skill: impl Into<SkillData>, defense_x: impl Into<i32>, defense_z: impl Into<i32>, battle_count: impl Into<i32>, ) { ... } fn calculate_indication(self, side: impl Into<BattleSide_Type>) { ... } fn calculate_kill_probability_without_interference( self, side: impl Into<BattleSide_Type>, ) { ... } fn calculate_kill_probability_without_interference2( self, side: impl Into<BattleSide_Type>, count: impl Into<i32>, times: impl Into<i32>, now_probability: impl Into<f32>, rest_hp: impl Into<i32>, ) { ... } fn calculate_kill_probability_without_interference3( self, side: impl Into<BattleSide_Type>, count: impl Into<i32>, times: impl Into<i32>, now_probability: impl Into<f32>, rest_hp: impl Into<i32>, damage: impl Into<i32>, ) { ... } fn get_scene_side(self, side: impl Into<BattleSide_Type>) -> BattleSide_Type { ... } fn calculate_chain_indication(self) { ... } fn calculate_chain_attack_indication( self, current: impl Into<BattleInfoSide>, reverse: impl Into<BattleInfoSide>, ) { ... } fn calculate_score(self, is_remove: impl Into<bool>) { ... } fn kill_score_normalize(self, kill: impl Into<f32>) -> u32 { ... } fn expectation_score_normalize( self, expectation: impl Into<f32>, bit: impl Into<i32>, max: impl Into<i32>, ) -> u32 { ... }
}

Provided Methods§

Source

fn get_kill(self) -> f32

get_Kill() overload

Source

fn get_dead(self) -> f32

get_Dead() overload

Source

fn get_expectation(self) -> f32

get_Expectation() overload

Source

fn get_attack(self) -> f32

get_Attack() overload

Source

fn get_follow(self) -> f32

get_Follow() overload

Source

fn get_power(self) -> i32

get_Power() overload

Source

fn get_hit(self) -> f32

get_Hit() overload

Source

fn get_offense_battle_times(self) -> i32

get_OffenseBattleTimes() overload

Source

fn get_defense_battle_times(self) -> i32

get_DefenseBattleTimes() overload

Source

fn ctor(self)

.ctor() overload

Source

fn calculate( self, offense: impl Into<Unit>, defense: impl Into<Unit>, x: impl Into<i32>, z: impl Into<i32>, range: impl Into<i32>, item_index: impl Into<i32>, skill: impl Into<SkillData>, defense_x: impl Into<i32>, defense_z: impl Into<i32>, is_remove: impl Into<bool>, battle_count: impl Into<i32>, )

Calculate(crate::app::unit::Unit, crate::app::unit::Unit, i32, i32, i32, i32, crate::app::skilldata::SkillData, i32, i32, bool, i32) overload

Source

fn is_power0_attack(self) -> bool

IsPower0Attack() overload

Source

fn calculate_battle_info( self, offense: impl Into<Unit>, defense: impl Into<Unit>, x: impl Into<i32>, z: impl Into<i32>, range: impl Into<i32>, unit_item: impl Into<UnitItem>, skill: impl Into<SkillData>, defense_x: impl Into<i32>, defense_z: impl Into<i32>, battle_count: impl Into<i32>, )

CalculateBattleInfo(crate::app::unit::Unit, crate::app::unit::Unit, i32, i32, i32, crate::app::unititem::UnitItem, crate::app::skilldata::SkillData, i32, i32, i32) overload

Source

fn calculate_indication(self, side: impl Into<BattleSide_Type>)

CalculateIndication(crate::app::battleside::BattleSide_Type) overload

Source

fn calculate_kill_probability_without_interference( self, side: impl Into<BattleSide_Type>, )

CalculateKillProbabilityWithoutInterference(crate::app::battleside::BattleSide_Type) overload

Source

fn calculate_kill_probability_without_interference2( self, side: impl Into<BattleSide_Type>, count: impl Into<i32>, times: impl Into<i32>, now_probability: impl Into<f32>, rest_hp: impl Into<i32>, )

CalculateKillProbabilityWithoutInterference2(crate::app::battleside::BattleSide_Type, i32, i32, f32, i32) overload

Source

fn calculate_kill_probability_without_interference3( self, side: impl Into<BattleSide_Type>, count: impl Into<i32>, times: impl Into<i32>, now_probability: impl Into<f32>, rest_hp: impl Into<i32>, damage: impl Into<i32>, )

CalculateKillProbabilityWithoutInterference3(crate::app::battleside::BattleSide_Type, i32, i32, f32, i32, i32) overload

Source

fn get_scene_side(self, side: impl Into<BattleSide_Type>) -> BattleSide_Type

GetSceneSide(crate::app::battleside::BattleSide_Type) overload

Source

fn calculate_chain_indication(self)

CalculateChainIndication() overload

Source

fn calculate_chain_attack_indication( self, current: impl Into<BattleInfoSide>, reverse: impl Into<BattleInfoSide>, )

CalculateChainAttackIndication(crate::app::battleinfoside::BattleInfoSide, crate::app::battleinfoside::BattleInfoSide) overload

Source

fn calculate_score(self, is_remove: impl Into<bool>)

CalculateScore(bool) overload

Source

fn kill_score_normalize(self, kill: impl Into<f32>) -> u32

KillScoreNormalize(f32) overload

Source

fn expectation_score_normalize( self, expectation: impl Into<f32>, bit: impl Into<i32>, max: impl Into<i32>, ) -> u32

ExpectationScoreNormalize(f32, i32, i32) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IAIBattleSimulator> IAIBattleSimulatorMethods for __T

Available on crate feature app-aibattlesimulator only.