Skip to main content

IAIInterferenceSimulatorMethods

Trait IAIInterferenceSimulatorMethods 

Source
pub trait IAIInterferenceSimulatorMethods: IAIInterferenceSimulator {
    // Provided methods
    fn get_is_not_suitable(self) -> bool { ... }
    fn get_hit(self) -> i32 { ... }
    fn ctor(self) { ... }
    fn prepare(self, flag: 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>,
        defense_x: impl Into<i32>,
        defense_z: 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>,
        item_index: impl Into<i32>,
        defense_x: impl Into<i32>,
        defense_z: impl Into<i32>,
    ) { ... }
    fn calculate_score(self) { ... }
}

Provided Methods§

Source

fn get_is_not_suitable(self) -> bool

get_IsNotSuitable() overload

Source

fn get_hit(self) -> i32

get_Hit() overload

Source

fn ctor(self)

.ctor() overload

Source

fn prepare(self, flag: impl Into<i32>)

Prepare(i32) 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>, defense_x: impl Into<i32>, defense_z: impl Into<i32>, )

Calculate(crate::app::unit::Unit, crate::app::unit::Unit, i32, i32, i32, i32, i32, i32) 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>, item_index: impl Into<i32>, defense_x: impl Into<i32>, defense_z: impl Into<i32>, )

CalculateBattleInfo(crate::app::unit::Unit, crate::app::unit::Unit, i32, i32, i32, i32, i32, i32) overload

Source

fn calculate_score(self)

CalculateScore() 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: IAIInterferenceSimulator> IAIInterferenceSimulatorMethods for __T

Available on crate feature app-aiinterferencesimulator only.