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§
Sourcefn think(
self,
actor: impl Into<Unit>,
attack_score: impl Into<u32>,
kill_rate: impl Into<f32>,
) -> bool
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
Sourcefn think_fire_cannon(self, actor: impl Into<Unit>) -> bool
fn think_fire_cannon(self, actor: impl Into<Unit>) -> bool
ThinkFireCannon(crate::app::unit::Unit) overload
Sourcefn think_common_check(
self,
actor: impl Into<Unit>,
cannon: impl Into<AICannon_CannonData>,
) -> (bool, i32, SkillData)
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
Sourcefn enumerate_cannon(self) -> List_1<AICannon_CannonData>
fn enumerate_cannon(self) -> List_1<AICannon_CannonData>
EnumerateCannon() overload
Sourcefn get_cannons(self) -> List_1<AICannon_CannonData>
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§
impl<__T: IAICannon> IAICannonMethods for __T
Available on crate feature
app-aicannon only.