Class PvpFightHistory
java.lang.Object
privbot.mechanics.PvpFightHistory
Single-owner coordinator for detached PvP observations. It folds the clocks, health and threat memory once per
sampled tick; it never reads the client or dispatches actions. Construct a new instance at a session boundary.
Server IDs and attribution remain the caller's responsibility.
- Since:
- 1.2.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDetached inputs derived from the same observation.static final classImmutable results for one sampled tick. -
Constructor Summary
ConstructorsConstructorDescriptionPvpFightHistory(Map<Integer, CombatStyle> ownAnimations, Map<Integer, CombatStyle> opponentAnimations, Set<Integer> nonAttackAnimations, Set<Integer> ownRangedGraphics, Set<Integer> opponentRangedGraphics, Set<Integer> magicGraphics) PvpFightHistory(Map<Integer, CombatStyle> ownAnimations, Map<Integer, CombatStyle> opponentAnimations, Set<Integer> nonAttackAnimations, Set<Integer> ownRangedGraphics, Set<Integer> opponentRangedGraphics, Set<Integer> magicGraphics, boolean energyDropMeansSpec) Enable energy-drop fire detection only when that rule has been verified for this server and session.PvpFightHistory(Map<Integer, CombatStyle> ownAnimations, Map<Integer, CombatStyle> opponentAnimations, Set<Integer> nonAttackAnimations, Set<Integer> ownRangedGraphics, Set<Integer> opponentRangedGraphics, Set<Integer> magicGraphics, boolean energyDropMeansSpec, boolean elorinWeaponNames) Also opt into the historical Elorin weapon-name style catalogue when appropriate for this server. -
Method Summary
Modifier and TypeMethodDescriptionhealth()Health history from the same folded frames.observe(FightObservation observation, PvpFightHistory.Inputs in, Map<Integer, CombatStyle> shotStyles) Fold a sample before recording sends from its plan.opponent()Prediction based on observed opponent swings; it never proves the next hit cannot arrive earlier.own()Record accepted sends and separately confirmed effects through this single-owner clock.
-
Constructor Details
-
PvpFightHistory
-
PvpFightHistory
public PvpFightHistory(Map<Integer, CombatStyle> ownAnimations, Map<Integer, CombatStyle> opponentAnimations, Set<Integer> nonAttackAnimations, Set<Integer> ownRangedGraphics, Set<Integer> opponentRangedGraphics, Set<Integer> magicGraphics, boolean energyDropMeansSpec) Enable energy-drop fire detection only when that rule has been verified for this server and session. -
PvpFightHistory
public PvpFightHistory(Map<Integer, CombatStyle> ownAnimations, Map<Integer, CombatStyle> opponentAnimations, Set<Integer> nonAttackAnimations, Set<Integer> ownRangedGraphics, Set<Integer> opponentRangedGraphics, Set<Integer> magicGraphics, boolean energyDropMeansSpec, boolean elorinWeaponNames) Also opt into the historical Elorin weapon-name style catalogue when appropriate for this server.
-
-
Method Details
-
observe
public PvpFightHistory.View observe(FightObservation observation, PvpFightHistory.Inputs in, Map<Integer, CombatStyle> shotStyles) Fold a sample before recording sends from its plan. Opponent and input facts must belong to this same tick;shotStylesis a server-space, independently verified cue table. Repeated ticks return the first view. -
own
Record accepted sends and separately confirmed effects through this single-owner clock. -
opponent
Prediction based on observed opponent swings; it never proves the next hit cannot arrive earlier. -
health
Health history from the same folded frames.
-