Class SimulationNpcProfile


  • public final class SimulationNpcProfile
    extends java.lang.Object
    NPC combat and movement profile used while simulating each NPC id.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static SimulationNpcProfile DEFAULT
      Default profile used when no id mapping exists.
    • Constructor Summary

      Constructors 
      Constructor Description
      SimulationNpcProfile​(int attackRange, NpcAttackStyle attackStyle, int attackSpeed, int maxHit, boolean intelligentPathing)
      Creates a profile for an NPC id mapping.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT

        public static final SimulationNpcProfile DEFAULT
        Default profile used when no id mapping exists.
    • Constructor Detail

      • SimulationNpcProfile

        public SimulationNpcProfile​(int attackRange,
                                    NpcAttackStyle attackStyle,
                                    int attackSpeed,
                                    int maxHit,
                                    boolean intelligentPathing)
        Creates a profile for an NPC id mapping.
        Parameters:
        attackRange - attack range used for line-of-sight and attack checks.
        attackStyle - attack style used for protection-prayer checks.
        attackSpeed - attack speed in ticks.
        maxHit - max hit used for damage simulation.
        intelligentPathing - true to use collision-aware pathfinding instead of greedy movement.