Class OpponentLockPolicy
java.lang.Object
privbot.mechanics.OpponentLockPolicy
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFacts about one observed player.static enumstatic final class -
Method Summary
Modifier and TypeMethodDescriptionstatic OpponentLockPolicy.Resultupdate(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.
-
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.completemust 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.
-