Class SpecWatch

java.lang.Object
privbot.mechanics.SpecWatch

public final class SpecWatch extends Object
Single-owner special-energy observation history; it never treats an unreadable sample as an energy value.
  • Constructor Details

    • SpecWatch

      public SpecWatch()
  • Method Details

    • observe

      public SpecWatch.Result observe(int tick, Integer percent, Boolean armed)
      Observe a percent and orb state; null means unreadable. A FIRED result gives the interval in which energy fell, which may span several ticks; do not assign such a fire to one tick without further evidence. A drop to zero without a confirmed armed-to-unarmed transition is only suspect; the next consecutive readable zero confirms it. NONE means no qualifying drop was detected, not that a fire between samples is impossible. Duplicate samples return the original result.