Merge branch 'development' of github.com:Parabot/Randoms into feature/anti-bot-detector

# Conflicts:
#	src/main/java/org/parabot/randoms/Core.java
This commit is contained in:
JKetelaar
2017-02-02 20:28:03 +01:00
10 changed files with 22 additions and 57 deletions
@@ -21,6 +21,7 @@ public class MouseOnScreen implements Random {
public void execute() {
int x = org.parabot.environment.api.utils.Random.between(100, Context.getInstance().getApplet().getWidth());
int y = org.parabot.environment.api.utils.Random.between(100, Context.getInstance().getApplet().getHeight());
Mouse.getInstance().moveMouse(x, y);
}
@@ -39,7 +40,7 @@ public class MouseOnScreen implements Random {
return RandomType.SCRIPT;
}
private boolean onScreen(){
private boolean onScreen() {
Point loc = Mouse.getInstance().getPoint();
return Context.getInstance().getApplet().contains(loc);
}
@@ -69,6 +69,7 @@ public class QuestionSolver implements Random {
} catch (MalformedURLException | UnsupportedEncodingException | ParseException e) {
e.printStackTrace();
}
return null;
}