Class OpponentLockPolicy

java.lang.Object
privbot.mechanics.OpponentLockPolicy

public final class OpponentLockPolicy extends Object
Detached opponent-lock selection. Candidates and facts must describe the same tick; this policy does not discover attackers or prove damage attribution. Unknown facts never establish a release or automatic switch.
Since:
1.2.0
  • Method Details

    • update

      public static OpponentLockPolicy.Result update(int tick, OpponentLock current, List<OpponentLockPolicy.Candidate> candidates, Boolean complete, Boolean underAttack, int idleTicks, int missingSamples, boolean followAttacker, int followTicks)
      Apply the flagship's own-target, nearest-attacker, absence, idle and optional follow-attacker rules. complete must establish that the relevant players were not filtered or omitted. The thresholds are caller-selected; historical Elorin defaults are 3 missing samples and 4 ticks before following an attacker. Call once per distinct sampled tick: repeated calls count as additional missing samples.