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§
Sourcefn get_expectation(self) -> f32
fn get_expectation(self) -> f32
get_Expectation() overload
Sourcefn get_attack(self) -> f32
fn get_attack(self) -> f32
get_Attack() overload
Sourcefn get_follow(self) -> f32
fn get_follow(self) -> f32
get_Follow() overload
Sourcefn get_offense_battle_times(self) -> i32
fn get_offense_battle_times(self) -> i32
get_OffenseBattleTimes() overload
Sourcefn get_defense_battle_times(self) -> i32
fn get_defense_battle_times(self) -> i32
get_DefenseBattleTimes() overload
Sourcefn 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 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
Sourcefn is_power0_attack(self) -> bool
fn is_power0_attack(self) -> bool
IsPower0Attack() overload
Sourcefn 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_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
Sourcefn calculate_indication(self, side: impl Into<BattleSide_Type>)
fn calculate_indication(self, side: impl Into<BattleSide_Type>)
CalculateIndication(crate::app::battleside::BattleSide_Type) overload
Sourcefn calculate_kill_probability_without_interference(
self,
side: impl Into<BattleSide_Type>,
)
fn calculate_kill_probability_without_interference( self, side: impl Into<BattleSide_Type>, )
CalculateKillProbabilityWithoutInterference(crate::app::battleside::BattleSide_Type) overload
Sourcefn 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_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
Sourcefn 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 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
Sourcefn get_scene_side(self, side: impl Into<BattleSide_Type>) -> BattleSide_Type
fn get_scene_side(self, side: impl Into<BattleSide_Type>) -> BattleSide_Type
GetSceneSide(crate::app::battleside::BattleSide_Type) overload
Sourcefn calculate_chain_indication(self)
fn calculate_chain_indication(self)
CalculateChainIndication() overload
Sourcefn calculate_chain_attack_indication(
self,
current: impl Into<BattleInfoSide>,
reverse: impl Into<BattleInfoSide>,
)
fn calculate_chain_attack_indication( self, current: impl Into<BattleInfoSide>, reverse: impl Into<BattleInfoSide>, )
CalculateChainAttackIndication(crate::app::battleinfoside::BattleInfoSide, crate::app::battleinfoside::BattleInfoSide) overload
Sourcefn calculate_score(self, is_remove: impl Into<bool>)
fn calculate_score(self, is_remove: impl Into<bool>)
CalculateScore(bool) overload
Sourcefn kill_score_normalize(self, kill: impl Into<f32>) -> u32
fn kill_score_normalize(self, kill: impl Into<f32>) -> u32
KillScoreNormalize(f32) overload
Sourcefn expectation_score_normalize(
self,
expectation: impl Into<f32>,
bit: impl Into<i32>,
max: impl Into<i32>,
) -> u32
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§
impl<__T: IAIBattleSimulator> IAIBattleSimulatorMethods for __T
app-aibattlesimulator only.