Class StandardMouseAlgorithm
- java.lang.Object
-
- org.dreambot.api.input.mouse.algorithm.StandardMouseAlgorithm
-
- All Implemented Interfaces:
MouseAlgorithm,MouseMovementAlgorithm
public class StandardMouseAlgorithm extends java.lang.Object implements MouseMovementAlgorithm
DreamBot's default implementation of mouse movement This should not be extended by scripters. If you want to create your own mouse algorithm, implementMouseAlgorithmCurrently implementsMouseMovementAlgorithmfor backwards compatibility
-
-
Constructor Summary
Constructors Constructor Description StandardMouseAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubledynamicRandom()Dynamic random value based on the current characters user name.doublegetAccelerationDeviation()Calculates acceleration deviation using a dynamic random.doublegetAccelerationRate()Calculates acceleration rate using a dynamic random.doublegetAngleDeviationRate()Calculates angle deviation rate using a dynamic random.doublegetCanvasReportRate()Calculates canvas report rate.doublegetDecayDistanceExponent()Calculates the decay distance exponent using a dynamic random.doublegetDecelDecayRate()Calculates deceleration decay rate using a dynamic random.doublegetDecelRadiusDeviation()Calculates deceleration radius deviation using a dynamic random.doublegetMaxDecelDistance()Calculates max deceleration distance using a dynamic random.doublegetMaxdTheta()Calculates max theta value (d) using a dynamic random.doublegetMaxMagnitude()Calculates max magnitude using a dynamic random.doublegetMeanDecelRadius()Calculates mean deceleration radius using a dynamic random.doublegetMinDecelMagnitude()Calculates minimum deceleration magnitude using a dynamic random.doublegetMinMagnitude()Calculates minimum magnitude using a dynamic random.booleanhandleClick(MouseButton button)Handles the clicking process.booleanhandleMovement(AbstractMouseDestination destination)
-
-
-
Method Detail
-
handleMovement
public boolean handleMovement(AbstractMouseDestination destination)
- Specified by:
handleMovementin interfaceMouseAlgorithm- Specified by:
handleMovementin interfaceMouseMovementAlgorithm
-
handleClick
public boolean handleClick(MouseButton button)
Description copied from interface:MouseAlgorithmHandles the clicking process. If you wish to use thehandleClick(MouseButton)You can implement this method to call {@link Mouse#getDefaultMouseAlgorithm()#handleClick(MouseButton)}- Specified by:
handleClickin interfaceMouseAlgorithm- Specified by:
handleClickin interfaceMouseMovementAlgorithm- Returns:
-
getCanvasReportRate
public double getCanvasReportRate()
Calculates canvas report rate.- Returns:
- the current canvas report rate.
-
dynamicRandom
public double dynamicRandom()
Dynamic random value based on the current characters user name.- Returns:
- the random value generated from character name represented as a double.
-
getMaxdTheta
public double getMaxdTheta()
Calculates max theta value (d) using a dynamic random.- Returns:
- the calculated max theta value (d) represented as a int.
-
getDecelRadiusDeviation
public double getDecelRadiusDeviation()
Calculates deceleration radius deviation using a dynamic random.- Returns:
- the calculated deceleration radius deviation represented as a int.
-
getDecayDistanceExponent
public double getDecayDistanceExponent()
Calculates the decay distance exponent using a dynamic random.- Returns:
- the calculated decay distance exponent represented as a double.
-
getMinMagnitude
public double getMinMagnitude()
Calculates minimum magnitude using a dynamic random.- Returns:
- the calculated minimum magnitude represented as a int.
-
getAccelerationDeviation
public double getAccelerationDeviation()
Calculates acceleration deviation using a dynamic random.- Returns:
- the calculated acceleration deviation as a int.
-
getMinDecelMagnitude
public double getMinDecelMagnitude()
Calculates minimum deceleration magnitude using a dynamic random.- Returns:
- the calculated minimum deceleration magnitude as a int.
-
getMaxDecelDistance
public double getMaxDecelDistance()
Calculates max deceleration distance using a dynamic random.- Returns:
- the calculated max deceleration distance as a int.
-
getAccelerationRate
public double getAccelerationRate()
Calculates acceleration rate using a dynamic random.- Returns:
- the calculated acceleration rate as a int.
-
getMaxMagnitude
public double getMaxMagnitude()
Calculates max magnitude using a dynamic random.- Returns:
- the calculated max magnitude as a int.
-
getDecelDecayRate
public double getDecelDecayRate()
Calculates deceleration decay rate using a dynamic random.- Returns:
- the calculated deceleration decay rate as a double.
-
getAngleDeviationRate
public double getAngleDeviationRate()
Calculates angle deviation rate using a dynamic random.- Returns:
- the calculated angle deviation rate as a int.
-
getMeanDecelRadius
public double getMeanDecelRadius()
Calculates mean deceleration radius using a dynamic random.- Returns:
- the calculated mean deceleration radius as a int.
-
-