Package com.epicbot.api.shared.bot.mouse
Class MouseMotionSettings
java.lang.Object
com.epicbot.api.shared.bot.mouse.MouseMotionSettings
- All Implemented Interfaces:
IMouseSettings.IMouseMotionSettings
-
Constructor Summary
ConstructorsConstructorDescriptionMouseMotionSettings(int steps, int stepsDivider, int effectFadeSteps, int reactionTime, int reactionTimeVariation) -
Method Summary
Modifier and TypeMethodDescriptiondoubleThe minimum deviation divider for the sinusoidal deviation function.intThe number of steps before the last step the noise and deviation effects start to fade.doublegetNoise()The minimum amount of noise that is added to each step.intThe minimum reaction time.intThe minimum variation that is added to the reaction time.intThe minimum distance for which a movement is considered a 'small' movement and some other settings will be used.intgetSteps()The minimum amount of steps that is taken to reach the target.intHow many locations need to be visited between start and end point.intHow many locations need to be visited between start and end point.intThe minimum amount of steps that is taken to reach the target.voidsetDeviation(double deviation) The minimum deviation divider for the sinusoidal deviation function.voidsetEffectFadeSteps(int effectFadeSteps) The number of steps before the last step the noise and deviation effects start to fade.voidsetNoise(double noise) The minimum amount of noise that is added to each step.voidsetReactionTime(int reactionTime) The minimum reaction time.voidsetReactionTimeVariation(int reactionTimeVariation) The minimum variation that is added to the reaction time.voidsetSmallMovementDistance(int smallMovementDistance) The minimum distance for which a movement is considered a 'small' movement and some other settings will be used.voidsetSteps(int steps) The minimum amount of steps that is taken to reach the target.voidsetStepsDivider(int stepsDivider) How many locations need to be visited between start and end point.voidsetStepsDividerSmall(int stepsDividerSmall) How many locations need to be visited between start and end point.voidsetStepsForSmallMovement(int stepsForSmallMovement) The minimum amount of steps that is taken to reach the target.
-
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:
getStepsin interfaceIMouseSettings.IMouseMotionSettings- Returns:
-
setSteps
public void setSteps(int steps) The minimum amount of steps that is taken to reach the target.- Specified by:
setStepsin interfaceIMouseSettings.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:
getStepsDividerin interfaceIMouseSettings.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:
setStepsDividerin interfaceIMouseSettings.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:
getSmallMovementDistancein interfaceIMouseSettings.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:
setSmallMovementDistancein interfaceIMouseSettings.IMouseMotionSettings
-
getStepsForSmallMovement
public int getStepsForSmallMovement()The minimum amount of steps that is taken to reach the target.- Specified by:
getStepsForSmallMovementin interfaceIMouseSettings.IMouseMotionSettings- Returns:
-
setStepsForSmallMovement
public void setStepsForSmallMovement(int stepsForSmallMovement) The minimum amount of steps that is taken to reach the target.- Specified by:
setStepsForSmallMovementin interfaceIMouseSettings.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:
getStepsDividerSmallin interfaceIMouseSettings.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:
setStepsDividerSmallin interfaceIMouseSettings.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:
getEffectFadeStepsin interfaceIMouseSettings.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:
setEffectFadeStepsin interfaceIMouseSettings.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:
getReactionTimein interfaceIMouseSettings.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:
setReactionTimein interfaceIMouseSettings.IMouseMotionSettings
-
getReactionTimeVariation
public int getReactionTimeVariation()The minimum variation that is added to the reaction time.- Specified by:
getReactionTimeVariationin interfaceIMouseSettings.IMouseMotionSettings
-
setReactionTimeVariation
public void setReactionTimeVariation(int reactionTimeVariation) The minimum variation that is added to the reaction time.- Specified by:
setReactionTimeVariationin interfaceIMouseSettings.IMouseMotionSettings
-
getNoise
public double getNoise()The minimum amount of noise that is added to each step. Bigger value means less noise.- Specified by:
getNoisein interfaceIMouseSettings.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:
setNoisein interfaceIMouseSettings.IMouseMotionSettings
-
getDeviation
public double getDeviation()The minimum deviation divider for the sinusoidal deviation function. Higher values means less deviation.- Specified by:
getDeviationin interfaceIMouseSettings.IMouseMotionSettings
-
setDeviation
public void setDeviation(double deviation) The minimum deviation divider for the sinusoidal deviation function. Higher values means less deviation.- Specified by:
setDeviationin interfaceIMouseSettings.IMouseMotionSettings
-