This commit is contained in:
parent
7cc01d9d29
commit
4d2d3403d6
@ -41,14 +41,24 @@ public class CursorMover extends TimerTask
|
|||||||
destX = RunnerUtil.SCREEN_WIDTH - 5;
|
destX = RunnerUtil.SCREEN_WIDTH - 5;
|
||||||
destY = 5;
|
destY = 5;
|
||||||
|
|
||||||
singleStepMovementTask = new SingleStepMovementTask(destX, destY, true);
|
try {
|
||||||
|
singleStepMovementTask = new SingleStepMovementTask(destX, destY, true);
|
||||||
|
} catch (AWTException e) {
|
||||||
|
LOGGER.error(e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
iteration = 0;
|
iteration = 0;
|
||||||
} else {
|
} else {
|
||||||
destX = random.nextInt(RunnerUtil.SCREEN_WIDTH);
|
destX = random.nextInt(RunnerUtil.SCREEN_WIDTH);
|
||||||
destY = random.nextInt(RunnerUtil.SCREEN_HEIGHT);
|
destY = random.nextInt(RunnerUtil.SCREEN_HEIGHT);
|
||||||
|
|
||||||
singleStepMovementTask = new SingleStepMovementTask(destX, destY, false);
|
try {
|
||||||
|
singleStepMovementTask = new SingleStepMovementTask(destX, destY, false);
|
||||||
|
} catch (AWTException e) {
|
||||||
|
LOGGER.error(e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
iteration++;
|
iteration++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user