Skip to main content

IBattleInfoMethods

Trait IBattleInfoMethods 

Source
pub trait IBattleInfoMethods: IBattleInfo {
Show 75 methods // Provided methods fn get_range(self) -> i32 { ... } fn set_range(self, value: impl Into<i32>) { ... } fn get_battle_count(self) -> i32 { ... } fn set_battle_count(self, value: impl Into<i32>) { ... } fn get_scene_result(self) -> BattleScene_Result { ... } fn set_scene_result(self, value: impl Into<BattleScene_Result>) { ... } fn get_chain_attack_side(self) -> BattleSide_Type { ... } fn set_chain_attack_side(self, value: impl Into<BattleSide_Type>) { ... } fn get_chain_attack_count(self) -> i32 { ... } fn set_chain_attack_count(self, value: impl Into<i32>) { ... } fn get_chain_guard_count(self) -> i32 { ... } fn set_chain_guard_count(self, value: impl Into<i32>) { ... } fn get_chain_attack_defeat(self) -> i32 { ... } fn set_chain_attack_defeat(self, value: impl Into<i32>) { ... } fn get_chain_attack_hit(self) -> i32 { ... } fn set_chain_attack_hit(self, value: impl Into<i32>) { ... } fn get_chain_attack_critical(self) -> i32 { ... } fn set_chain_attack_critical(self, value: impl Into<i32>) { ... } fn get_chain_attack_damage(self) -> i32 { ... } fn set_chain_attack_damage(self, value: impl Into<i32>) { ... } fn get_temp_skills(self) -> List_1<SkillData> { ... } fn get_summon_rank(self) -> PersonData_Ranks { ... } fn set_summon_rank(self, value: impl Into<PersonData_Ranks>) { ... } fn get_summon_color(self) -> PersonData_Colors { ... } fn set_summon_color(self, value: impl Into<PersonData_Colors>) { ... } fn ctor(self) { ... } fn finalize(self) { ... } fn dispose(self) { ... } fn reset(self, flags: impl Into<BattleInfo_Flags>) { ... } fn calc_simple( self, offense: impl Into<Unit>, flag: impl Into<BattleInfo_Flags>, ) -> BattleInfo { ... } fn calc_simple_2( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, defense: impl Into<Unit>, flag: impl Into<BattleInfo_Flags>, ) { ... } fn calc_simple_3( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, defense: impl Into<Unit>, command_skill: impl Into<SkillData>, flags: impl Into<BattleInfo_Flags>, count: impl Into<i32>, ) { ... } fn calc_simple_4( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, target_x: impl Into<i32>, target_z: impl Into<i32>, command_skill: impl Into<SkillData>, flags: impl Into<BattleInfo_Flags>, count: impl Into<i32>, ) { ... } fn calc_simple_5( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, attack_x: impl Into<i32>, attack_z: impl Into<i32>, defense: impl Into<Unit>, target_x: impl Into<i32>, target_z: impl Into<i32>, command_skill: impl Into<SkillData>, flags: impl Into<BattleInfo_Flags>, count: impl Into<i32>, ) { ... } fn calc_simple_6( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, attack_x: impl Into<i32>, attack_z: impl Into<i32>, defense: impl Into<Unit>, revenge_item: impl Into<UnitItem>, target_x: impl Into<i32>, target_z: impl Into<i32>, command_skill: impl Into<SkillData>, flags: impl Into<BattleInfo_Flags>, count: impl Into<i32>, ) { ... } fn calc_destroy( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, target_x: impl Into<i32>, target_z: impl Into<i32>, flags: impl Into<BattleInfo_Flags>, count: impl Into<i32>, ) { ... } fn calc_summon( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, rank: impl Into<PersonData_Ranks>, color: impl Into<PersonData_Colors>, is_simulation: impl Into<bool>, ) { ... } fn calc_dance( self, offense: impl Into<Unit>, defense: impl Into<Unit>, is_simulation: impl Into<bool>, ) { ... } fn calc_enchant( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, defense: impl Into<Unit>, is_simulation: impl Into<bool>, ) { ... } fn calc_flags(self) { ... } fn calc_range(self) { ... } fn set_support_offense( self, support: impl Into<BattleSide_Type>, unit: impl Into<Unit>, status: impl Into<BattleInfoSide_Status>, ) -> BattleInfoSide { ... } fn can_chain_guard( self, unit: impl Into<Unit>, chain: impl Into<Unit>, ) -> bool { ... } fn calc_support_defense( self, support: impl Into<BattleSide_Type>, x: impl Into<i32>, z: impl Into<i32>, current: impl Into<BattleInfoSide>, ) -> BattleSide_Type { ... } fn calc_chain(self) { ... } fn search_guard( self, x: impl Into<i32>, z: impl Into<i32>, range: impl Into<i32>, ) { ... } fn calc_param(self) { ... } fn calc_active_skill(self, timing: impl Into<SkillData_Timings>) { ... } fn get_flag(self) -> BattleInfo_FlagField { ... } fn is_flag(self, flag: impl Into<BattleInfo_Flags>) -> bool { ... } fn get_side(self, type: impl Into<BattleSide_Type>) -> BattleInfoSide { ... } fn get_side_2(self, index: impl Into<i32>) -> BattleInfoSide { ... } fn get_parent_side(self, type: impl Into<BattleSide_Type>) -> BattleInfoSide { ... } fn get_parent_side_2(self, index: impl Into<i32>) -> BattleInfoSide { ... } fn get_reverse_side( self, type: impl Into<BattleSide_Type>, ) -> BattleInfoSide { ... } fn get_reverse_side_2(self, index: impl Into<i32>) -> BattleInfoSide { ... } fn get_unit(self, type: impl Into<BattleSide_Type>) -> Unit { ... } fn get_unit_2(self, index: impl Into<i32>) -> Unit { ... } fn push_detail(self) { ... } fn pop_detail(self) { ... } fn get_main_unit_enum(self) -> BattleInfoEnum { ... } fn get_whole_unit_enum(self) -> BattleInfoEnum { ... } fn get_chain_offense_enum(self) -> BattleInfoEnum { ... } fn get_chain_defense_enum(self) -> BattleInfoEnum { ... } fn get_chain_unit_enum(self) -> BattleInfoEnum { ... } fn find_destroy_side(self) -> BattleInfoSide { ... } fn has_chain_offense(self, unit: impl Into<Unit>) -> bool { ... } fn has_chain_defense(self, unit: impl Into<Unit>) -> bool { ... } fn complement_conditions(self) { ... } fn calc_detail(self) { ... } fn calc_battle_times(self) { ... } fn can_chain_skill( self, skill: impl Into<SkillData>, flags: impl Into<SkillData_Flags>, ) -> bool { ... } fn can_move_attack( self, unit: impl Into<Unit>, target: impl Into<Unit>, ) -> bool { ... } fn can_force_chain_attack( self, unit: impl Into<Unit>, chain: impl Into<Unit>, target: impl Into<Unit>, ) -> bool { ... } fn can_join_chain_attack( self, unit: impl Into<Unit>, chain: impl Into<Unit>, target: impl Into<Unit>, ) -> bool { ... }
}

Provided Methods§

Source

fn get_range(self) -> i32

get_Range() overload

Source

fn set_range(self, value: impl Into<i32>)

set_Range(i32) overload

Source

fn get_battle_count(self) -> i32

get_BattleCount() overload

Source

fn set_battle_count(self, value: impl Into<i32>)

set_BattleCount(i32) overload

Source

fn get_scene_result(self) -> BattleScene_Result

get_SceneResult() overload

Source

fn set_scene_result(self, value: impl Into<BattleScene_Result>)

set_SceneResult(crate::app::battlescene::BattleScene_Result) overload

Source

fn get_chain_attack_side(self) -> BattleSide_Type

get_ChainAttackSide() overload

Source

fn set_chain_attack_side(self, value: impl Into<BattleSide_Type>)

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

Source

fn get_chain_attack_count(self) -> i32

get_ChainAttackCount() overload

Source

fn set_chain_attack_count(self, value: impl Into<i32>)

set_ChainAttackCount(i32) overload

Source

fn get_chain_guard_count(self) -> i32

get_ChainGuardCount() overload

Source

fn set_chain_guard_count(self, value: impl Into<i32>)

set_ChainGuardCount(i32) overload

Source

fn get_chain_attack_defeat(self) -> i32

get_ChainAttackDefeat() overload

Source

fn set_chain_attack_defeat(self, value: impl Into<i32>)

set_ChainAttackDefeat(i32) overload

Source

fn get_chain_attack_hit(self) -> i32

get_ChainAttackHit() overload

Source

fn set_chain_attack_hit(self, value: impl Into<i32>)

set_ChainAttackHit(i32) overload

Source

fn get_chain_attack_critical(self) -> i32

get_ChainAttackCritical() overload

Source

fn set_chain_attack_critical(self, value: impl Into<i32>)

set_ChainAttackCritical(i32) overload

Source

fn get_chain_attack_damage(self) -> i32

get_ChainAttackDamage() overload

Source

fn set_chain_attack_damage(self, value: impl Into<i32>)

set_ChainAttackDamage(i32) overload

Source

fn get_temp_skills(self) -> List_1<SkillData>

get_TempSkills() overload

Source

fn get_summon_rank(self) -> PersonData_Ranks

get_SummonRank() overload

Source

fn set_summon_rank(self, value: impl Into<PersonData_Ranks>)

set_SummonRank(crate::app::persondata::PersonData_Ranks) overload

Source

fn get_summon_color(self) -> PersonData_Colors

get_SummonColor() overload

Source

fn set_summon_color(self, value: impl Into<PersonData_Colors>)

set_SummonColor(crate::app::persondata::PersonData_Colors) overload

Source

fn ctor(self)

.ctor() overload

Source

fn finalize(self)

Finalize() overload

Source

fn dispose(self)

Dispose() overload

Source

fn reset(self, flags: impl Into<BattleInfo_Flags>)

Reset(crate::app::battleinfo::BattleInfo_Flags) overload

Source

fn calc_simple( self, offense: impl Into<Unit>, flag: impl Into<BattleInfo_Flags>, ) -> BattleInfo

CalcSimple(crate::app::unit::Unit, crate::app::battleinfo::BattleInfo_Flags) overload

Source

fn calc_simple_2( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, defense: impl Into<Unit>, flag: impl Into<BattleInfo_Flags>, )

CalcSimple(crate::app::unit::Unit, crate::app::unititem::UnitItem, crate::app::unit::Unit, crate::app::battleinfo::BattleInfo_Flags) overload

Source

fn calc_simple_3( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, defense: impl Into<Unit>, command_skill: impl Into<SkillData>, flags: impl Into<BattleInfo_Flags>, count: impl Into<i32>, )

CalcSimple(crate::app::unit::Unit, crate::app::unititem::UnitItem, crate::app::unit::Unit, crate::app::skilldata::SkillData, crate::app::battleinfo::BattleInfo_Flags, i32) overload

Source

fn calc_simple_4( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, target_x: impl Into<i32>, target_z: impl Into<i32>, command_skill: impl Into<SkillData>, flags: impl Into<BattleInfo_Flags>, count: impl Into<i32>, )

CalcSimple(crate::app::unit::Unit, crate::app::unititem::UnitItem, i32, i32, crate::app::skilldata::SkillData, crate::app::battleinfo::BattleInfo_Flags, i32) overload

Source

fn calc_simple_5( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, attack_x: impl Into<i32>, attack_z: impl Into<i32>, defense: impl Into<Unit>, target_x: impl Into<i32>, target_z: impl Into<i32>, command_skill: impl Into<SkillData>, flags: impl Into<BattleInfo_Flags>, count: impl Into<i32>, )

CalcSimple(crate::app::unit::Unit, crate::app::unititem::UnitItem, i32, i32, crate::app::unit::Unit, i32, i32, crate::app::skilldata::SkillData, crate::app::battleinfo::BattleInfo_Flags, i32) overload

Source

fn calc_simple_6( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, attack_x: impl Into<i32>, attack_z: impl Into<i32>, defense: impl Into<Unit>, revenge_item: impl Into<UnitItem>, target_x: impl Into<i32>, target_z: impl Into<i32>, command_skill: impl Into<SkillData>, flags: impl Into<BattleInfo_Flags>, count: impl Into<i32>, )

CalcSimple(crate::app::unit::Unit, crate::app::unititem::UnitItem, i32, i32, crate::app::unit::Unit, crate::app::unititem::UnitItem, i32, i32, crate::app::skilldata::SkillData, crate::app::battleinfo::BattleInfo_Flags, i32) overload

Source

fn calc_destroy( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, target_x: impl Into<i32>, target_z: impl Into<i32>, flags: impl Into<BattleInfo_Flags>, count: impl Into<i32>, )

CalcDestroy(crate::app::unit::Unit, crate::app::unititem::UnitItem, i32, i32, crate::app::battleinfo::BattleInfo_Flags, i32) overload

Source

fn calc_summon( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, rank: impl Into<PersonData_Ranks>, color: impl Into<PersonData_Colors>, is_simulation: impl Into<bool>, )

CalcSummon(crate::app::unit::Unit, crate::app::unititem::UnitItem, crate::app::persondata::PersonData_Ranks, crate::app::persondata::PersonData_Colors, bool) overload

Source

fn calc_dance( self, offense: impl Into<Unit>, defense: impl Into<Unit>, is_simulation: impl Into<bool>, )

CalcDance(crate::app::unit::Unit, crate::app::unit::Unit, bool) overload

Source

fn calc_enchant( self, offense: impl Into<Unit>, unit_item: impl Into<UnitItem>, defense: impl Into<Unit>, is_simulation: impl Into<bool>, )

CalcEnchant(crate::app::unit::Unit, crate::app::unititem::UnitItem, crate::app::unit::Unit, bool) overload

Source

fn calc_flags(self)

CalcFlags() overload

Source

fn calc_range(self)

CalcRange() overload

Source

fn set_support_offense( self, support: impl Into<BattleSide_Type>, unit: impl Into<Unit>, status: impl Into<BattleInfoSide_Status>, ) -> BattleInfoSide

SetSupportOffense(crate::app::battleside::BattleSide_Type, crate::app::unit::Unit, crate::app::battleinfoside::BattleInfoSide_Status) overload

Source

fn can_chain_guard(self, unit: impl Into<Unit>, chain: impl Into<Unit>) -> bool

CanChainGuard(crate::app::unit::Unit, crate::app::unit::Unit) overload

Source

fn calc_support_defense( self, support: impl Into<BattleSide_Type>, x: impl Into<i32>, z: impl Into<i32>, current: impl Into<BattleInfoSide>, ) -> BattleSide_Type

CalcSupportDefense(crate::app::battleside::BattleSide_Type, i32, i32, crate::app::battleinfoside::BattleInfoSide) overload

Source

fn calc_chain(self)

CalcChain() overload

Source

fn search_guard( self, x: impl Into<i32>, z: impl Into<i32>, range: impl Into<i32>, )

SearchGuard(i32, i32, i32) overload

Source

fn calc_param(self)

CalcParam() overload

Source

fn calc_active_skill(self, timing: impl Into<SkillData_Timings>)

CalcActiveSkill(crate::app::skilldata::SkillData_Timings) overload

Source

fn get_flag(self) -> BattleInfo_FlagField

GetFlag() overload

Source

fn is_flag(self, flag: impl Into<BattleInfo_Flags>) -> bool

IsFlag(crate::app::battleinfo::BattleInfo_Flags) overload

Source

fn get_side(self, type: impl Into<BattleSide_Type>) -> BattleInfoSide

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

Source

fn get_side_2(self, index: impl Into<i32>) -> BattleInfoSide

GetSide(i32) overload

Source

fn get_parent_side(self, type: impl Into<BattleSide_Type>) -> BattleInfoSide

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

Source

fn get_parent_side_2(self, index: impl Into<i32>) -> BattleInfoSide

GetParentSide(i32) overload

Source

fn get_reverse_side(self, type: impl Into<BattleSide_Type>) -> BattleInfoSide

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

Source

fn get_reverse_side_2(self, index: impl Into<i32>) -> BattleInfoSide

GetReverseSide(i32) overload

Source

fn get_unit(self, type: impl Into<BattleSide_Type>) -> Unit

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

Source

fn get_unit_2(self, index: impl Into<i32>) -> Unit

GetUnit(i32) overload

Source

fn push_detail(self)

PushDetail() overload

Source

fn pop_detail(self)

PopDetail() overload

Source

fn get_main_unit_enum(self) -> BattleInfoEnum

GetMainUnitEnum() overload

Source

fn get_whole_unit_enum(self) -> BattleInfoEnum

GetWholeUnitEnum() overload

Source

fn get_chain_offense_enum(self) -> BattleInfoEnum

GetChainOffenseEnum() overload

Source

fn get_chain_defense_enum(self) -> BattleInfoEnum

GetChainDefenseEnum() overload

Source

fn get_chain_unit_enum(self) -> BattleInfoEnum

GetChainUnitEnum() overload

Source

fn find_destroy_side(self) -> BattleInfoSide

FindDestroySide() overload

Source

fn has_chain_offense(self, unit: impl Into<Unit>) -> bool

HasChainOffense(crate::app::unit::Unit) overload

Source

fn has_chain_defense(self, unit: impl Into<Unit>) -> bool

HasChainDefense(crate::app::unit::Unit) overload

Source

fn complement_conditions(self)

ComplementConditions() overload

Source

fn calc_detail(self)

CalcDetail() overload

Source

fn calc_battle_times(self)

CalcBattleTimes() overload

Source

fn can_chain_skill( self, skill: impl Into<SkillData>, flags: impl Into<SkillData_Flags>, ) -> bool

CanChainSkill(crate::app::skilldata::SkillData, crate::app::skilldata::SkillData_Flags) overload

Source

fn can_move_attack(self, unit: impl Into<Unit>, target: impl Into<Unit>) -> bool

CanMoveAttack(crate::app::unit::Unit, crate::app::unit::Unit) overload

Source

fn can_force_chain_attack( self, unit: impl Into<Unit>, chain: impl Into<Unit>, target: impl Into<Unit>, ) -> bool

CanForceChainAttack(crate::app::unit::Unit, crate::app::unit::Unit, crate::app::unit::Unit) overload

Source

fn can_join_chain_attack( self, unit: impl Into<Unit>, chain: impl Into<Unit>, target: impl Into<Unit>, ) -> bool

CanJoinChainAttack(crate::app::unit::Unit, crate::app::unit::Unit, crate::app::unit::Unit) 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: IBattleInfo> IBattleInfoMethods for __T

Available on crate feature app-battleinfo only.