Skip to main content

IAICrossfireMethods

Trait IAICrossfireMethods 

Source
pub trait IAICrossfireMethods: IAICrossfire {
    // Provided methods
    fn ctor(self) { ... }
    fn think(self) -> bool { ... }
    fn calculate(self) { ... }
    fn calculate_ahead(
        self,
        actor: impl Into<Unit>,
        target: impl Into<Unit>,
        x: impl Into<i32>,
        z: impl Into<i32>,
    ) { ... }
    fn is_permission(self, unit: impl Into<Unit>) -> bool { ... }
    fn get_attack_range(
        self,
        unit: impl Into<Unit>,
        far: impl Into<bool>,
    ) -> (i32, u64) { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn think(self) -> bool

Think() overload

Source

fn calculate(self)

Calculate() overload

Source

fn calculate_ahead( self, actor: impl Into<Unit>, target: impl Into<Unit>, x: impl Into<i32>, z: impl Into<i32>, )

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

Source

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

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

Source

fn get_attack_range( self, unit: impl Into<Unit>, far: impl Into<bool>, ) -> (i32, u64)

GetAttackRange(crate::app::unit::Unit, *mutu64, bool) 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: IAICrossfire> IAICrossfireMethods for __T

Available on crate feature app-aicrossfire only.