Class PvpFightHistory.Inputs
java.lang.Object
privbot.mechanics.PvpFightHistory.Inputs
- Enclosing class:
PvpFightHistory
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 Summary
FieldsModifier and TypeFieldDescriptionfinal Integerfinal booleanfinal longfinal Booleanfinal Booleanfinal PlayerViewfinal Integerfinal CombatStylefinal Integerfinal Boolean -
Constructor Summary
ConstructorsConstructorDescriptionInputs(long lock, PlayerView opponent, CombatStyle opponentWeapon, Integer ownCycle, Integer opponentCycle, Integer attributedOpponentHit, Boolean specFired, Boolean meleeProtected, Boolean meleePlayerTargetsUs, boolean excludeMislabelledZero) -
Method Summary
Modifier and TypeMethodDescriptionstatic PvpFightHistory.InputsfromLock(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.
-
Field Details
-
lock
public final long lock -
opponent
-
opponentWeapon
-
ownCycle
-
opponentCycle
-
attributedOpponentHit
-
specFired
-
meleeProtected
-
meleePlayerTargetsUs
-
excludeMislabelledZero
public final boolean excludeMislabelledZero
-
-
Constructor Details
-
Inputs
public Inputs(long lock, PlayerView opponent, CombatStyle opponentWeapon, Integer ownCycle, Integer opponentCycle, Integer attributedOpponentHit, Boolean specFired, Boolean meleeProtected, Boolean meleePlayerTargetsUs, boolean excludeMislabelledZero)
-
-
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.
-