Skip to main content

IAICannonMethods

Trait IAICannonMethods 

Source
pub trait IAICannonMethods: IAICannon {
    // Provided methods
    fn ctor(self) { ... }
    fn update(self) { ... }
    fn think(
        self,
        actor: impl Into<Unit>,
        attack_score: impl Into<u32>,
        kill_rate: impl Into<f32>,
    ) -> bool { ... }
    fn think_fire_cannon(self, actor: impl Into<Unit>) -> bool { ... }
    fn think_common_check(
        self,
        actor: impl Into<Unit>,
        cannon: impl Into<AICannon_CannonData>,
    ) -> (bool, i32, SkillData) { ... }
    fn enumerate_cannon(self) -> List_1<AICannon_CannonData> { ... }
    fn get_cannons(self) -> List_1<AICannon_CannonData> { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn update(self)

Update() overload

Source

fn think( self, actor: impl Into<Unit>, attack_score: impl Into<u32>, kill_rate: impl Into<f32>, ) -> bool

Think(crate::app::unit::Unit, u32, f32) overload

Source

fn think_fire_cannon(self, actor: impl Into<Unit>) -> bool

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

Source

fn think_common_check( self, actor: impl Into<Unit>, cannon: impl Into<AICannon_CannonData>, ) -> (bool, i32, SkillData)

ThinkCommonCheck(crate::app::unit::Unit, crate::app::aicannon::AICannon_CannonData, *muti32, *mutcrate::app::skilldata::SkillData) overload

Source

fn enumerate_cannon(self) -> List_1<AICannon_CannonData>

EnumerateCannon() overload

Source

fn get_cannons(self) -> List_1<AICannon_CannonData>

get_Cannons() 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: IAICannon> IAICannonMethods for __T

Available on crate feature app-aicannon only.