Package net.openosrs.api.input.motion
Class MovementPlanner
- java.lang.Object
-
- net.openosrs.api.input.motion.MovementPlanner
-
public final class MovementPlanner extends java.lang.ObjectPlans a cursor path from one point to another.Paths come from
PhysicsMovementPlanner: velocity builds up, the heading steers toward the target with a speed-dependent turning radius, and the cursor slows down near the target. Points are produced at 125 Hz, a common mouse report rate.
-
-
Constructor Summary
Constructors Constructor Description MovementPlanner(MouseProfile profile, java.util.Random random)MovementPlanner(MouseProfile profile, java.util.Random random, boolean usePhysics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intclickHoldMs()intdragPressHoldMs()MouseProfilegetProfile()booleanisUsePhysics()MousePathplan(net.runelite.api.Point from, net.runelite.api.Point to)MousePathplan(net.runelite.api.Point from, net.runelite.api.Point to, int speedSetting)MousePathplan(net.runelite.api.Point from, net.runelite.api.Point to, java.awt.Rectangle targetBounds, int speedSetting)MousePathplanBezier(net.runelite.api.Point from, net.runelite.api.Point to, java.awt.Rectangle targetBounds, int speedSetting)MousePathplanDrag(net.runelite.api.Point from, net.runelite.api.Point to, int speedSetting)voidsetUsePhysics(boolean usePhysics)
-
-
-
Constructor Detail
-
MovementPlanner
public MovementPlanner(MouseProfile profile, java.util.Random random)
-
MovementPlanner
public MovementPlanner(MouseProfile profile, java.util.Random random, boolean usePhysics)
-
-
Method Detail
-
getProfile
public MouseProfile getProfile()
-
isUsePhysics
public boolean isUsePhysics()
-
setUsePhysics
public void setUsePhysics(boolean usePhysics)
-
plan
public MousePath plan(net.runelite.api.Point from, net.runelite.api.Point to, java.awt.Rectangle targetBounds, int speedSetting)
-
plan
public MousePath plan(net.runelite.api.Point from, net.runelite.api.Point to)
-
plan
public MousePath plan(net.runelite.api.Point from, net.runelite.api.Point to, int speedSetting)
-
planDrag
public MousePath planDrag(net.runelite.api.Point from, net.runelite.api.Point to, int speedSetting)
-
planBezier
public MousePath planBezier(net.runelite.api.Point from, net.runelite.api.Point to, java.awt.Rectangle targetBounds, int speedSetting)
-
clickHoldMs
public int clickHoldMs()
-
dragPressHoldMs
public int dragPressHoldMs()
-
-