Class OpponentLock

java.lang.Object
privbot.mechanics.OpponentLock

public final class OpponentLock extends Object
The locked opponent. Immutable: every tick replaces it (or clears it) as a whole.

Pure; no client reads, any thread. Lifted unchanged from ElorinPvP model/OpponentLock.

  • Field Details

    • id

      public final int id
    • name

      public final String name
    • lockedTick

      public final int lockedTick
    • lastInteractionTick

      public final int lastInteractionTick
    • absentSamples

      public final int absentSamples
    • lastTargetsUsTick

      public final int lastTargetsUsTick
      The last tick they targeted us (the lock's own tick when they never have): who is actually hitting us.
  • Constructor Details

    • OpponentLock

      public OpponentLock(int id, String name, int lockedTick, int lastInteractionTick, int absentSamples)
    • OpponentLock

      public OpponentLock(int id, String name, int lockedTick, int lastInteractionTick, int absentSamples, int lastTargetsUsTick)
  • Method Details