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 Currently implementsMouseMovementAlgorithm
for backwards compatibility
-
-
Constructor Summary
Constructors Constructor Description StandardMouseAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
dynamicRandom()
Dynamic random value based on the current characters user name.double
getAccelerationDeviation()
Calculates acceleration deviation using a dynamic random.double
getAccelerationRate()
Calculates acceleration rate using a dynamic random.double
getAngleDeviationRate()
Calculates angle deviation rate using a dynamic random.double
getCanvasReportRate()
Calculates canvas report rate.double
getDecayDistanceExponent()
Calculates the decay distance exponent using a dynamic random.double
getDecelDecayRate()
Calculates deceleration decay rate using a dynamic random.double
getDecelRadiusDeviation()
Calculates deceleration radius deviation using a dynamic random.double
getMaxDecelDistance()
Calculates max deceleration distance using a dynamic random.double
getMaxdTheta()
Calculates max theta value (d) using a dynamic random.double
getMaxMagnitude()
Calculates max magnitude using a dynamic random.double
getMeanDecelRadius()
Calculates mean deceleration radius using a dynamic random.double
getMinDecelMagnitude()
Calculates minimum deceleration magnitude using a dynamic random.double
getMinMagnitude()
Calculates minimum magnitude using a dynamic random.boolean
handleClick(MouseButton button)
boolean
handleMovement(AbstractMouseDestination destination)
-
-
-
Method Detail
-
handleMovement
public boolean handleMovement(AbstractMouseDestination destination)
- Specified by:
handleMovement
in interfaceMouseAlgorithm
- Specified by:
handleMovement
in interfaceMouseMovementAlgorithm
-
handleClick
public boolean handleClick(MouseButton button)
- Specified by:
handleClick
in interfaceMouseAlgorithm
- Specified by:
handleClick
in interfaceMouseMovementAlgorithm
-
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.
-
-