Class AttackExpiryTracker

java.lang.Object
privbot.mechanics.AttackExpiryTracker

public final class AttackExpiryTracker extends Object
Single-owner count of consecutive accepted attacks whose pending windows expired without an observed fire. A window expiry is unknown outcome, not proof of failure. Reset on a new fight or session.
Since:
1.2.0
  • Constructor Details

    • AttackExpiryTracker

      public AttackExpiryTracker()
  • Method Details

    • observe

      public void observe(int tick, Boolean confirmedFire, Boolean expiresNow)
      Fold one tick. expiresNow must already use the preceding sampled tick; null on either input means the evidence was unreadable. A confirmed fire resets the run even if the expiry input is unreadable.
    • swingsUnseen

      public Boolean swingsUnseen(int threshold)
      Whether the observed run reaches the chosen threshold; null when missing evidence could change the answer.
    • clear

      public void clear()
      Forget the run at a new lock or session.