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§
Sourcefn calculate_ahead(
self,
actor: impl Into<Unit>,
target: impl Into<Unit>,
x: impl Into<i32>,
z: impl Into<i32>,
)
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
Sourcefn is_permission(self, unit: impl Into<Unit>) -> bool
fn is_permission(self, unit: impl Into<Unit>) -> bool
IsPermission(crate::app::unit::Unit) overload
Sourcefn get_attack_range(
self,
unit: impl Into<Unit>,
far: impl Into<bool>,
) -> (i32, u64)
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§
impl<__T: IAICrossfire> IAICrossfireMethods for __T
Available on crate feature
app-aicrossfire only.