Class RandomRoamExecutor

java.lang.Object
cn.nukkit.entity.ai.executor.RandomRoamExecutor
All Implemented Interfaces:
IBehaviorExecutor

public class RandomRoamExecutor extends Object implements IBehaviorExecutor
  • Field Details

    • speed

      protected float speed
    • maxRoamRange

      protected int maxRoamRange
    • frequency

      protected int frequency
    • currentTargetCalTick

      protected int currentTargetCalTick
    • durationTick

      protected int durationTick
    • calNextTargetImmediately

      protected boolean calNextTargetImmediately
    • runningTime

      protected int runningTime
    • avoidWater

      protected boolean avoidWater
    • maxRetryTime

      protected int maxRetryTime
  • Constructor Details

    • RandomRoamExecutor

      public RandomRoamExecutor(float speed, int maxRoamRange, int frequency)
    • RandomRoamExecutor

      public RandomRoamExecutor(float speed, int maxRoamRange, int frequency, boolean calNextTargetImmediately, int runningTime)
    • RandomRoamExecutor

      public RandomRoamExecutor(float speed, int maxRoamRange, int frequency, boolean calNextTargetImmediately, int runningTime, boolean avoidWater, int maxRetryTime)
  • Method Details