pub struct EnemyConfig {
pub attack_range: f32,
pub preferred_range: f32,
pub reaction_seconds: f32,
pub attack_interval: f32,
pub turn_radians_per_second: f32,
pub aim_tolerance: f32,
pub retreat_health: f32,
pub strafe: f32,
pub search_radius: f32,
}Fields§
§attack_range: f32§preferred_range: f32§reaction_seconds: f32§attack_interval: f32§turn_radians_per_second: f32§aim_tolerance: f32§retreat_health: f32§strafe: f32§search_radius: f32Implementations§
Source§impl EnemyConfig
impl EnemyConfig
pub fn ranged() -> EnemyConfig
pub fn melee() -> EnemyConfig
Trait Implementations§
Source§impl Clone for EnemyConfig
impl Clone for EnemyConfig
Source§fn clone(&self) -> EnemyConfig
fn clone(&self) -> EnemyConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnemyConfig
impl Debug for EnemyConfig
impl Copy for EnemyConfig
Auto Trait Implementations§
impl Freeze for EnemyConfig
impl RefUnwindSafe for EnemyConfig
impl Send for EnemyConfig
impl Sync for EnemyConfig
impl Unpin for EnemyConfig
impl UnwindSafe for EnemyConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more