Class MouseMotionSettings

java.lang.Object
com.epicbot.api.shared.bot.mouse.MouseMotionSettings
All Implemented Interfaces:
IMouseSettings.IMouseMotionSettings

public class MouseMotionSettings extends Object implements IMouseSettings.IMouseMotionSettings
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    MouseMotionSettings(int steps, int stepsDivider, int effectFadeSteps, int reactionTime, int reactionTimeVariation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    The minimum deviation divider for the sinusoidal deviation function.
    int
    The number of steps before the last step the noise and deviation effects start to fade.
    double
    The minimum amount of noise that is added to each step.
    int
    The minimum reaction time.
    int
    The minimum variation that is added to the reaction time.
    int
    The minimum distance for which a movement is considered a 'small' movement and some other settings will be used.
    int
    The minimum amount of steps that is taken to reach the target.
    int
    How many locations need to be visited between start and end point.
    int
    How many locations need to be visited between start and end point.
    int
    The minimum amount of steps that is taken to reach the target.
    void
    setDeviation(double deviation)
    The minimum deviation divider for the sinusoidal deviation function.
    void
    setEffectFadeSteps(int effectFadeSteps)
    The number of steps before the last step the noise and deviation effects start to fade.
    void
    setNoise(double noise)
    The minimum amount of noise that is added to each step.
    void
    setReactionTime(int reactionTime)
    The minimum reaction time.
    void
    setReactionTimeVariation(int reactionTimeVariation)
    The minimum variation that is added to the reaction time.
    void
    setSmallMovementDistance(int smallMovementDistance)
    The minimum distance for which a movement is considered a 'small' movement and some other settings will be used.
    void
    setSteps(int steps)
    The minimum amount of steps that is taken to reach the target.
    void
    setStepsDivider(int stepsDivider)
    How many locations need to be visited between start and end point.
    void
    setStepsDividerSmall(int stepsDividerSmall)
    How many locations need to be visited between start and end point.
    void
    setStepsForSmallMovement(int stepsForSmallMovement)
    The minimum amount of steps that is taken to reach the target.

    Methods inherited from class java.lang.Object

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

    • MouseMotionSettings

      public MouseMotionSettings()
    • MouseMotionSettings

      public MouseMotionSettings(int steps, int stepsDivider, int effectFadeSteps, int reactionTime, int reactionTimeVariation)
  • Method Details

    • getSteps

      public int getSteps()
      The minimum amount of steps that is taken to reach the target.
      Specified by:
      getSteps in interface IMouseSettings.IMouseMotionSettings
      Returns:
    • setSteps

      public void setSteps(int steps)
      The minimum amount of steps that is taken to reach the target.
      Specified by:
      setSteps in interface IMouseSettings.IMouseMotionSettings
    • getStepsDivider

      public int getStepsDivider()
      How many locations need to be visited between start and end point. More steps means more smooth movement.
      Increasing this divider means less steps and decreasing means more steps.
      Specified by:
      getStepsDivider in interface IMouseSettings.IMouseMotionSettings
      Returns:
    • setStepsDivider

      public void setStepsDivider(int stepsDivider)
      How many locations need to be visited between start and end point. More steps means more smooth movement.
      Increasing this divider means less steps and decreasing means more steps.
      Specified by:
      setStepsDivider in interface IMouseSettings.IMouseMotionSettings
    • getSmallMovementDistance

      public int getSmallMovementDistance()
      The minimum distance for which a movement is considered a 'small' movement and some other settings will be used.
      Specified by:
      getSmallMovementDistance in interface IMouseSettings.IMouseMotionSettings
      Returns:
    • setSmallMovementDistance

      public void setSmallMovementDistance(int smallMovementDistance)
      The minimum distance for which a movement is considered a 'small' movement and some other settings will be used.
      Specified by:
      setSmallMovementDistance in interface IMouseSettings.IMouseMotionSettings
    • getStepsForSmallMovement

      public int getStepsForSmallMovement()
      The minimum amount of steps that is taken to reach the target.
      Specified by:
      getStepsForSmallMovement in interface IMouseSettings.IMouseMotionSettings
      Returns:
    • setStepsForSmallMovement

      public void setStepsForSmallMovement(int stepsForSmallMovement)
      The minimum amount of steps that is taken to reach the target.
      Specified by:
      setStepsForSmallMovement in interface IMouseSettings.IMouseMotionSettings
    • getStepsDividerSmall

      public int getStepsDividerSmall()
      How many locations need to be visited between start and end point. More steps means more smooth movement.
      Increasing this divider means less steps and decreasing means more steps.
      Specified by:
      getStepsDividerSmall in interface IMouseSettings.IMouseMotionSettings
      Returns:
    • setStepsDividerSmall

      public void setStepsDividerSmall(int stepsDividerSmall)
      How many locations need to be visited between start and end point. More steps means more smooth movement.
      Increasing this divider means less steps and decreasing means more steps.
      Specified by:
      setStepsDividerSmall in interface IMouseSettings.IMouseMotionSettings
    • getEffectFadeSteps

      public int getEffectFadeSteps()
      The number of steps before the last step the noise and deviation effects start to fade. Decreases linearly to 0 at the end of the mouse movement.
      Specified by:
      getEffectFadeSteps in interface IMouseSettings.IMouseMotionSettings
      Returns:
    • setEffectFadeSteps

      public void setEffectFadeSteps(int effectFadeSteps)
      The number of steps before the last step the noise and deviation effects start to fade. Decreases linearly to 0 at the end of the mouse movement.
      Specified by:
      setEffectFadeSteps in interface IMouseSettings.IMouseMotionSettings
    • getReactionTime

      public int getReactionTime()
      The minimum reaction time. This is used for when the cursor overshoots the target and will sleep before starting the next movement.
      Specified by:
      getReactionTime in interface IMouseSettings.IMouseMotionSettings
    • setReactionTime

      public void setReactionTime(int reactionTime)
      The minimum reaction time. This is used for when the cursor overshoots the target and will sleep before starting the next movement.
      Specified by:
      setReactionTime in interface IMouseSettings.IMouseMotionSettings
    • getReactionTimeVariation

      public int getReactionTimeVariation()
      The minimum variation that is added to the reaction time.
      Specified by:
      getReactionTimeVariation in interface IMouseSettings.IMouseMotionSettings
    • setReactionTimeVariation

      public void setReactionTimeVariation(int reactionTimeVariation)
      The minimum variation that is added to the reaction time.
      Specified by:
      setReactionTimeVariation in interface IMouseSettings.IMouseMotionSettings
    • getNoise

      public double getNoise()
      The minimum amount of noise that is added to each step. Bigger value means less noise.
      Specified by:
      getNoise in interface IMouseSettings.IMouseMotionSettings
      Returns:
    • setNoise

      public void setNoise(double noise)
      The minimum amount of noise that is added to each step. Bigger value means less noise.
      Specified by:
      setNoise in interface IMouseSettings.IMouseMotionSettings
    • getDeviation

      public double getDeviation()
      The minimum deviation divider for the sinusoidal deviation function. Higher values means less deviation.
      Specified by:
      getDeviation in interface IMouseSettings.IMouseMotionSettings
    • setDeviation

      public void setDeviation(double deviation)
      The minimum deviation divider for the sinusoidal deviation function. Higher values means less deviation.
      Specified by:
      setDeviation in interface IMouseSettings.IMouseMotionSettings