Class OpponentLockTracker
java.lang.Object
privbot.mechanics.OpponentLockTracker
Single-owner opponent lock history. Feed observations once per tick; repeated ticks return the first result,
so a coalesced callback cannot count the same absence twice. Create a new tracker at a session boundary.
- Since:
- 1.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionOpponentLockTracker(int idleTicks, int missingSamples, boolean followAttacker, int followTicks) -
Method Summary
Modifier and TypeMethodDescriptionobserve(int tick, List<OpponentLockPolicy.Candidate> candidates, Boolean complete, Boolean underAttack) All facts must come from this tick.
-
Constructor Details
-
OpponentLockTracker
public OpponentLockTracker(int idleTicks, int missingSamples, boolean followAttacker, int followTicks)
-
-
Method Details
-
observe
public OpponentLockPolicy.Result observe(int tick, List<OpponentLockPolicy.Candidate> candidates, Boolean complete, Boolean underAttack) All facts must come from this tick. An incomplete scan or unreadable candidate remains unknown.
-