mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-04 16:49:10 +00:00
Proper code style environment package
This commit is contained in:
@@ -21,8 +21,8 @@ import org.parabot.core.ui.utils.UILog;
|
||||
*/
|
||||
public final class Landing {
|
||||
// forum account
|
||||
private static String username = null;
|
||||
private static String password = null;
|
||||
private static String username;
|
||||
private static String password;
|
||||
|
||||
public static void main(String... args) throws IOException {
|
||||
parseArgs(args);
|
||||
|
||||
@@ -8,7 +8,6 @@ package org.parabot.environment.api.utils;
|
||||
*
|
||||
*/
|
||||
public class Timer {
|
||||
|
||||
private long start;
|
||||
private long end;
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ import org.parabot.core.Context;
|
||||
*
|
||||
*/
|
||||
public class Keyboard implements KeyListener {
|
||||
private Component component = null;
|
||||
private static HashMap<Character, Character> specialChars;
|
||||
private Component component;
|
||||
private long pressTime;
|
||||
|
||||
public Keyboard(Component component) {
|
||||
|
||||
@@ -17,9 +17,9 @@ import org.parabot.environment.api.utils.Time;
|
||||
*
|
||||
*/
|
||||
public class Mouse implements MouseListener, MouseMotionListener {
|
||||
private Component component = null;
|
||||
private int x = 0;
|
||||
private int y = 0;
|
||||
private Component component;
|
||||
private int x;
|
||||
private int y;
|
||||
|
||||
public Mouse(Component component) {
|
||||
this.component = component;
|
||||
|
||||
@@ -47,7 +47,7 @@ class Looper extends AbstractFramework {
|
||||
}
|
||||
|
||||
class StrategyWorker extends AbstractFramework {
|
||||
private Collection<Strategy> strategies = null;
|
||||
private Collection<Strategy> strategies;
|
||||
|
||||
public StrategyWorker(Collection<Strategy> strategies) {
|
||||
this.strategies = strategies;
|
||||
|
||||
@@ -8,7 +8,7 @@ package org.parabot.environment.scripts;
|
||||
*
|
||||
*/
|
||||
public class LocalScriptExecuter extends ScriptExecuter {
|
||||
private Script script = null;
|
||||
private Script script;
|
||||
|
||||
public LocalScriptExecuter(final Script script) {
|
||||
this.script = script;
|
||||
|
||||
@@ -22,9 +22,8 @@ import org.parabot.environment.scripts.loader.JavaScriptLoader;
|
||||
*
|
||||
*/
|
||||
public class SDNScriptExecuter extends ScriptExecuter {
|
||||
private int id = -1;
|
||||
|
||||
private static AccountManager manager = null;
|
||||
private static AccountManager manager;
|
||||
|
||||
public static final AccountManagerAccess MANAGER_FETCHER = new AccountManagerAccess() {
|
||||
|
||||
@@ -35,6 +34,8 @@ public class SDNScriptExecuter extends ScriptExecuter {
|
||||
|
||||
};
|
||||
|
||||
private int id = -1;
|
||||
|
||||
public SDNScriptExecuter(final int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,10 @@ package org.parabot.environment.scripts.framework;
|
||||
*/
|
||||
public abstract class AbstractFramework {
|
||||
|
||||
/**
|
||||
* Executes this frame
|
||||
* @return <b>true</b> if it should keep executing this framework, otherwise <b>false</b>.
|
||||
*/
|
||||
public abstract boolean execute();
|
||||
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ import org.parabot.environment.scripts.Script;
|
||||
*
|
||||
*/
|
||||
public class JavaScriptLoader extends ASMClassLoader {
|
||||
private ClassPath classPath = null;
|
||||
private ClassPath classPath;
|
||||
|
||||
public JavaScriptLoader(ClassPath classPath) {
|
||||
super(classPath);
|
||||
|
||||
@@ -16,8 +16,8 @@ import org.parabot.core.classpath.ClassPath;
|
||||
*/
|
||||
public class LocalServerExecuter extends ServerExecuter {
|
||||
private final ServerProvider serverProvider;
|
||||
private ClassPath classPath = null;
|
||||
private String serverName = null;
|
||||
private ClassPath classPath;
|
||||
private String serverName;
|
||||
|
||||
public LocalServerExecuter(ServerProvider serverProvider,
|
||||
ClassPath classPath, final String serverName) {
|
||||
|
||||
@@ -23,8 +23,8 @@ import java.net.URL;
|
||||
*
|
||||
*/
|
||||
public class PublicServerExecuter extends ServerExecuter {
|
||||
private String serverName = null;
|
||||
private String serverID = null;
|
||||
private String serverName;
|
||||
private String serverID;
|
||||
|
||||
public PublicServerExecuter(final String serverName, final String serverID) {
|
||||
this.serverName = serverName;
|
||||
|
||||
@@ -17,7 +17,7 @@ import org.parabot.environment.servers.ServerProvider;
|
||||
*
|
||||
*/
|
||||
public class ServerLoader extends ASMClassLoader {
|
||||
private ClassPath classPath = null;
|
||||
private ClassPath classPath;
|
||||
|
||||
public ServerLoader(ClassPath classPath) {
|
||||
super(classPath);
|
||||
|
||||
Reference in New Issue
Block a user