Class AttackHistory
java.lang.Object
privbot.mechanics.AttackHistory
Single-owner record of accepted attack sends and independently confirmed fires, eats and clearing exits.
It does not read the client, dispatch actions, or infer a fire from a click. Feed observations before recording
actions decided from the same sample, and feed fires before confirmed eats in that sample. A different fight clears
the target-specific send but retains our own clock.
This low-level record does not detect animations or inventory changes for the caller.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleared(int tick) Record a confirmed clearing exit that happened after the send, not a merely dispatched action.voidRecord a food consumption proved by a fresh inventory read; repeated reports for an item and tick count once.intestimatedReady(Map<String, Integer> overrides) Estimated next attack fire, or null when the required observations are missing.voidfire(int tick, AttackHistory.Family family, CombatStyle style, String weapon) Record a confirmed fire.Style of the last confirmed fire, or null when it could not be classified.voidnewFight()A new opponent invalidates the old send; our last confirmed fire and eats still describe our timer.True, false or unknown: a missing fire estimate cannot establish a pending deadline.voidsent(int tick, AttackHistory.Family family) Record only a dispatch known to have been accepted; acceptance is not a fire.sentTick()boolean
-
Constructor Details
-
AttackHistory
public AttackHistory()
-
-
Method Details
-
sent
Record only a dispatch known to have been accepted; acceptance is not a fire. -
fire
Record a confirmed fire. A fire in the same sample as a send precedes that send. -
eatLanded
Record a food consumption proved by a fresh inventory read; repeated reports for an item and tick count once. -
cleared
public void cleared(int tick) Record a confirmed clearing exit that happened after the send, not a merely dispatched action. -
newFight
public void newFight()A new opponent invalidates the old send; our last confirmed fire and eats still describe our timer. -
unsettled
public boolean unsettled() -
sentTick
-
firedTick
-
firedStyle
Style of the last confirmed fire, or null when it could not be classified. -
eatsSinceFire
public int eatsSinceFire() -
estimatedReady
-
pending
-