public class Mouse
extends java.lang.Object
Constructor | Description |
---|---|
Mouse(java.lang.String path,
int windowWidth,
int windowHeight) |
Modifier and Type | Method | Description |
---|---|---|
void |
assignPathsToGrid(java.util.ArrayList<MousePath> mousePaths) |
|
void |
displayPaths() |
|
int[] |
getGridIndex(int deltaX,
int deltaY) |
|
int[] |
getMouseLocation() |
|
void |
moveMouse(int endingX,
int endingY) |
Moves mouse in a human-like way by finding a similar path from the past
and slightly transforming it.
|
java.util.ArrayList<MousePath> |
readFile(java.lang.String path) |
public void moveMouse(int endingX, int endingY)
endingX
- X coordinate of the ending location.endingY
- Y coordinate of the ending location.public int[] getMouseLocation()
public int[] getGridIndex(int deltaX, int deltaY)
public void assignPathsToGrid(java.util.ArrayList<MousePath> mousePaths)
public java.util.ArrayList<MousePath> readFile(java.lang.String path)
public void displayPaths()