pub struct EnemyStatus {
pub target: Option<u64>,
pub target_visible: bool,
pub lost_target: Option<u64>,
pub phase: EnemyAttackPhase,
pub windup_remaining: f32,
pub recovery_remaining: f32,
}Expand description
Constant-size snapshot of the controller’s latest successfully applied input. Reading this snapshot never advances time or consumes a transition.
Fields§
§target: Option<u64>Selected memory identity, including hearing or remembered sight.
target_visible: boolOnly a visible, age-zero sight track counts as current sight.
lost_target: Option<u64>Previous identity whose selection or current sight was lost on the last
successful tick, or removed by EnemyController::cancel_target.
A remembered target may still be selected. Cleared on the next successful
tick (including a zero delta); invalid inputs leave this unchanged.
phase: EnemyAttackPhase§windup_remaining: f32Seconds left in the current reaction, or zero when no reaction is pending. Recent sight can maintain reaction between sensing slots for 0.25 seconds; hearing, stale sight, reload and retreat cancel it.
recovery_remaining: f32Seconds until another request is allowed, even if the target was lost.
Trait Implementations§
Source§impl Clone for EnemyStatus
impl Clone for EnemyStatus
Source§fn clone(&self) -> EnemyStatus
fn clone(&self) -> EnemyStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more