Class OwnAttackClock
java.lang.Object
privbot.mechanics.OwnAttackClock
Combines a cue detector and confirmed-action history for our attack cycle. Single-owner; create a new clock on a
session reset. Call
observe(privbot.mechanics.FightFrame, java.lang.Boolean, java.lang.Integer) before recording sends decided from that frame. This class never dispatches,
and a send is not a fire. The caller must supply server-ID-space cues and confirm food and clearing effects.-
Constructor Summary
ConstructorsConstructorDescriptionOwnAttackClock(Map<Integer, CombatStyle> attackAnimations, Set<Integer> nonAttackAnimations, Set<Integer> rangedGraphics) -
Method Summary
Modifier and TypeMethodDescriptionautoAttacking(Boolean facingOpponent) Whether a confirmed melee or ranged fire is repeating while the player still faces the locked opponent.voidcleared(int tick) Record a clearing effect only after it is observed and attributed to an action after the send.voidRecord an eat only after a fresh inventory read proves it landed.estimatedReady(Map<String, Integer> overrides) Null after an unreadable sample until a fresh fire re-establishes the timer.voidnewFight()observe(FightFrame frame, Boolean specFired, Integer cycleTicks) Fold one detached frame.voidsent(int tick, AttackHistory.Family family) Record a send only after the dispatcher accepted it.Whether a faced opponent has gone beyond the ready/send deadline without a later confirmed fire.swingsUnseen(int threshold) Whether consecutive accepted sends expired unseen; null if a gap prevents a reliable count.boolean
-
Constructor Details
-
OwnAttackClock
-
-
Method Details
-
observe
Fold one detached frame.specFiredis a separately confirmed spec energy drop, or null when unknown;cycleTicksis the known cycle of the currently worn weapon, or null. Neither is inferred from a click. -
sent
Record a send only after the dispatcher accepted it. -
eatLanded
Record an eat only after a fresh inventory read proves it landed. -
cleared
public void cleared(int tick) Record a clearing effect only after it is observed and attributed to an action after the send. -
newFight
public void newFight() -
unsettled
public boolean unsettled() -
swingsUnseen
Whether consecutive accepted sends expired unseen; null if a gap prevents a reliable count. -
estimatedReady
-
pending
-
autoAttacking
-
stalled
-