Package com.epicbot.api.shared.bot.mouse
Class SpeedSettings
java.lang.Object
com.epicbot.api.shared.bot.mouse.SpeedSettings
- All Implemented Interfaces:
IMouseSettings.ISpeedSettings
-
Constructor Summary
ConstructorsConstructorDescriptionSpeedSettings(int mouseMovementBaseTime, int mouseMovementTimeVariation, double smallMovementSpeedDivider) -
Method Summary
Modifier and TypeMethodDescriptionintThe minimum time it takes to move the mouse to a target.intRandom minimum time added to the base movement time.doubleWhen a movement is considered a small movement, the base time will be calculated as: baseTime / divider.
For example: 2 means the movement will be twice as fast.voidsetMouseMovementBaseTime(int mouseMovementBaseTime) The minimum time it takes to move the mouse to a target.voidsetMouseMovementTimeVariation(int mouseMovementTimeVariation) Random minimum time added to the base movement time.voidsetSmallMovementSpeedDivider(double smallMovementSpeedDivider) When a movement is considered a small movement, the base time will be calculated as: baseTime / divider.
For example: 2 means the movement will be twice as fast.
-
Constructor Details
-
SpeedSettings
public SpeedSettings() -
SpeedSettings
public SpeedSettings(int mouseMovementBaseTime, int mouseMovementTimeVariation, double smallMovementSpeedDivider)
-
-
Method Details
-
getMouseMovementBaseTime
public int getMouseMovementBaseTime()The minimum time it takes to move the mouse to a target.- Specified by:
getMouseMovementBaseTimein interfaceIMouseSettings.ISpeedSettings- Returns:
-
setMouseMovementBaseTime
public void setMouseMovementBaseTime(int mouseMovementBaseTime) The minimum time it takes to move the mouse to a target.- Specified by:
setMouseMovementBaseTimein interfaceIMouseSettings.ISpeedSettings
-
getMouseMovementTimeVariation
public int getMouseMovementTimeVariation()Random minimum time added to the base movement time.- Specified by:
getMouseMovementTimeVariationin interfaceIMouseSettings.ISpeedSettings- Returns:
-
setMouseMovementTimeVariation
public void setMouseMovementTimeVariation(int mouseMovementTimeVariation) Random minimum time added to the base movement time.- Specified by:
setMouseMovementTimeVariationin interfaceIMouseSettings.ISpeedSettings
-
getSmallMovementSpeedDivider
public double getSmallMovementSpeedDivider()When a movement is considered a small movement, the base time will be calculated as: baseTime / divider.
For example: 2 means the movement will be twice as fast.- Specified by:
getSmallMovementSpeedDividerin interfaceIMouseSettings.ISpeedSettings- Returns:
-
setSmallMovementSpeedDivider
public void setSmallMovementSpeedDivider(double smallMovementSpeedDivider) When a movement is considered a small movement, the base time will be calculated as: baseTime / divider.
For example: 2 means the movement will be twice as fast.- Specified by:
setSmallMovementSpeedDividerin interfaceIMouseSettings.ISpeedSettings
-