Class NpcAttackerEvidence

java.lang.Object
privbot.mechanics.NpcAttackerEvidence

public final class NpcAttackerEvidence extends Object
Detached result of a bounded NPC attacker scan. It says nothing about players or NPCs outside its radius. A follower targeting the player is unknown because its owner is not established.
Since:
1.2.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    NpcAttackerEvidence(int radius, boolean complete, Boolean otherAttacker)
    The scanner must report completeness only if no potentially relevant NPC was skipped.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether every loaded NPC in range was placed and inspected.
    True when an NPC is known to attack us, false only when the complete scan rules that out, null otherwise.
    int
    Maximum square-distance covered by the scan.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NpcAttackerEvidence

      public NpcAttackerEvidence(int radius, boolean complete, Boolean otherAttacker)
      The scanner must report completeness only if no potentially relevant NPC was skipped.
  • Method Details

    • radius

      public int radius()
      Maximum square-distance covered by the scan.
    • complete

      public boolean complete()
      Whether every loaded NPC in range was placed and inspected.
    • otherAttacker

      public Boolean otherAttacker()
      True when an NPC is known to attack us, false only when the complete scan rules that out, null otherwise.