Class ThreatMemory
java.lang.Object
privbot.mechanics.ThreatMemory
Single-owner rolling threat memory. All events and style mappings are supplied as detached observations; unknown
reads are null, not empty lists. The caller resets it at a session boundary. No game objects or dispatches.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classA verified magic tell and its lead in client cycles; callers perform server-ID matching before construction.static final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Forget all prior fight and session observations.observe(int tick, Long lockId, Integer opponentId, Boolean targetsUs, CombatStyle opponentWeapon, List<ThreatMemory.Hit> newHits, List<ThreatMemory.Tell> newTells, Boolean protectMeleeNow, Integer previousSampleTick, Boolean meleePlayerTargetsUs, boolean excludeMislabelledZero) Fold one tick.observe(FightObservation observation, Long lockId, PlayerView opponent, CombatStyle opponentWeapon, Set<Integer> verifiedMagicGraphics, Boolean protectMeleeNow, Integer previousSampleTick, Boolean meleePlayerTargetsUs, boolean excludeMislabelledZero) Fold an observer's same-tick frame and events.
-
Constructor Details
-
ThreatMemory
public ThreatMemory()
-
-
Method Details
-
observe
public ThreatMemory.View observe(FightObservation observation, Long lockId, PlayerView opponent, CombatStyle opponentWeapon, Set<Integer> verifiedMagicGraphics, Boolean protectMeleeNow, Integer previousSampleTick, Boolean meleePlayerTargetsUs, boolean excludeMislabelledZero) Fold an observer's same-tick frame and events. The caller supplies the current lock, opponent, verified server graphic IDs, previously sampled tick, and independently established player targeting facts. -
observe
public ThreatMemory.View observe(int tick, Long lockId, Integer opponentId, Boolean targetsUs, CombatStyle opponentWeapon, List<ThreatMemory.Hit> newHits, List<ThreatMemory.Tell> newTells, Boolean protectMeleeNow, Integer previousSampleTick, Boolean meleePlayerTargetsUs, boolean excludeMislabelledZero) Fold one tick. A different lockId represents a new lock, even for the same player. Null opponent means the player was not observed; null hit/tell lists mean unreadable. previousSampleTick identifies the preceding successful sample, so protection from a missing sample is never used to classify a hit. meleePlayerTargetsUs is true/false only when the player/weapon reads establish the answer. The hit's code is a server code; the code-zero exclusion is applied only when this caller explicitly enables that verified server rule. -
clear
public void clear()Forget all prior fight and session observations.
-