Class PvpFightHistory.Inputs

java.lang.Object
privbot.mechanics.PvpFightHistory.Inputs
Enclosing class:
PvpFightHistory

public static final class PvpFightHistory.Inputs extends Object
Detached inputs derived from the same observation. Null observations and classifications remain unknown. A lock token changes when an opponent is retaken, even if the player index is unchanged.
Since:
1.2.0
  • Field Details

    • lock

      public final long lock
    • opponent

      public final PlayerView opponent
    • opponentWeapon

      public final CombatStyle opponentWeapon
    • ownCycle

      public final Integer ownCycle
    • opponentCycle

      public final Integer opponentCycle
    • attributedOpponentHit

      public final Integer attributedOpponentHit
    • specFired

      public final Boolean specFired
    • meleeProtected

      public final Boolean meleeProtected
    • meleePlayerTargetsUs

      public final Boolean meleePlayerTargetsUs
    • excludeMislabelledZero

      public final boolean excludeMislabelledZero
  • Constructor Details

  • Method Details

    • fromLock

      public static PvpFightHistory.Inputs fromLock(FightObservation observation, OpponentLockPolicy.Result result, CombatStyle opponentWeapon, Integer ownCycle, Integer opponentCycle, Integer attributedOpponentHit, Boolean specFired, Boolean meleeProtected, Boolean meleePlayerTargetsUs, boolean excludeMislabelledZero)
      Bind a lock result to an opponent from this exact observation. Null means no usable current lock or the selected player is missing from both observation lists; do not treat it as a negative observation. A retained lock whose player is temporarily absent produces inputs with a null opponent.