pub enum EnemyAttackPhase {
Inactive,
Windup,
Ready,
Recovery,
}Expand description
Phase of the existing reaction/cooldown timers, not a separate action queue. Recovery takes precedence when both timers are running.
Variants§
Inactive
No recent sight reaction is pending and no recovery remains.
Windup
Reacting to recent sight; see EnemyStatus::windup_remaining.
Ready
Reaction is complete. Current sight, range, aim and a positive tick are still required before an attack request can be emitted.
Recovery
Waiting after an attack request; see EnemyStatus::recovery_remaining.
Trait Implementations§
Source§impl Clone for EnemyAttackPhase
impl Clone for EnemyAttackPhase
Source§fn clone(&self) -> EnemyAttackPhase
fn clone(&self) -> EnemyAttackPhase
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 EnemyAttackPhase
impl Debug for EnemyAttackPhase
Source§impl PartialEq for EnemyAttackPhase
impl PartialEq for EnemyAttackPhase
impl Copy for EnemyAttackPhase
impl Eq for EnemyAttackPhase
impl StructuralPartialEq for EnemyAttackPhase
Auto Trait Implementations§
impl Freeze for EnemyAttackPhase
impl RefUnwindSafe for EnemyAttackPhase
impl Send for EnemyAttackPhase
impl Sync for EnemyAttackPhase
impl Unpin for EnemyAttackPhase
impl UnwindSafe for EnemyAttackPhase
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