Package com.epicbot.api.shared.bot.mouse
Class OvershootSettings
java.lang.Object
com.epicbot.api.shared.bot.mouse.OvershootSettings
- All Implemented Interfaces:
IMouseSettings.IOvershootSettings
-
Constructor Summary
ConstructorsConstructorDescriptionOvershootSettings(int numberOfOvershoots, int distanceForOvershoots, int overshootsTime, int overshootsRandomModifier, double overshootsSpeedup) -
Method Summary
Modifier and TypeMethodDescriptionintThe minimum distance away from the target the mouse must be to be able to overshoot.intThe minimum amount of overshoots that can occur during a mouse movement.intA random modifier that is applied to the overshoot distance.doubleWhen the mouse overshoots the target, the speed of the next movement will be increased by at least this value.intThe minimum time in milliseconds that an overshoot movement will take.voidsetDistanceForOvershoots(int distanceForOvershoots) The minimum distance away from the target the mouse must be to be able to overshoot.voidsetNumberOfOvershoots(int numberOfOvershoots) The minimum amount of overshoots that can occur during a mouse movement.voidsetOvershootsRandomModifier(int overshootsRandomModifier) A random modifier that is applied to the overshoot distance.voidsetOvershootsSpeedup(double overshootsSpeedup) When the mouse overshoots the target, the speed of the next movement will be increased by at least this value.voidsetOvershootsTime(int overshootsTime) The minimum time in milliseconds that an overshoot movement will take.
-
Constructor Details
-
OvershootSettings
public OvershootSettings() -
OvershootSettings
public OvershootSettings(int numberOfOvershoots, int distanceForOvershoots, int overshootsTime, int overshootsRandomModifier, double overshootsSpeedup)
-
-
Method Details
-
getNumberOfOvershoots
public int getNumberOfOvershoots()The minimum amount of overshoots that can occur during a mouse movement.- Specified by:
getNumberOfOvershootsin interfaceIMouseSettings.IOvershootSettings
-
setNumberOfOvershoots
public void setNumberOfOvershoots(int numberOfOvershoots) The minimum amount of overshoots that can occur during a mouse movement.- Specified by:
setNumberOfOvershootsin interfaceIMouseSettings.IOvershootSettings
-
getDistanceForOvershoots
public int getDistanceForOvershoots()The minimum distance away from the target the mouse must be to be able to overshoot.- Specified by:
getDistanceForOvershootsin interfaceIMouseSettings.IOvershootSettings
-
setDistanceForOvershoots
public void setDistanceForOvershoots(int distanceForOvershoots) The minimum distance away from the target the mouse must be to be able to overshoot.- Specified by:
setDistanceForOvershootsin interfaceIMouseSettings.IOvershootSettings
-
getOvershootsTime
public int getOvershootsTime()The minimum time in milliseconds that an overshoot movement will take.- Specified by:
getOvershootsTimein interfaceIMouseSettings.IOvershootSettings
-
setOvershootsTime
public void setOvershootsTime(int overshootsTime) The minimum time in milliseconds that an overshoot movement will take.- Specified by:
setOvershootsTimein interfaceIMouseSettings.IOvershootSettings
-
getOvershootsRandomModifier
public int getOvershootsRandomModifier()A random modifier that is applied to the overshoot distance. Higher values means less overshoot.- Specified by:
getOvershootsRandomModifierin interfaceIMouseSettings.IOvershootSettings
-
setOvershootsRandomModifier
public void setOvershootsRandomModifier(int overshootsRandomModifier) A random modifier that is applied to the overshoot distance. Higher values means less overshoot.- Specified by:
setOvershootsRandomModifierin interfaceIMouseSettings.IOvershootSettings
-
getOvershootsSpeedup
public double getOvershootsSpeedup()When the mouse overshoots the target, the speed of the next movement will be increased by at least this value. For example, a value of 2 means the next movement will be twice as fast.- Specified by:
getOvershootsSpeedupin interfaceIMouseSettings.IOvershootSettings
-
setOvershootsSpeedup
public void setOvershootsSpeedup(double overshootsSpeedup) When the mouse overshoots the target, the speed of the next movement will be increased by at least this value. For example, a value of 2 means the next movement will be twice as fast.- Specified by:
setOvershootsSpeedupin interfaceIMouseSettings.IOvershootSettings
-