Fixed some formats

This commit is contained in:
Jeroen Ketelaar
2014-02-14 03:40:19 +01:00
parent d11849bebb
commit 570601c534
2 changed files with 269 additions and 263 deletions
@@ -1,11 +1,9 @@
package org.parabot.core;
/**
*
* Holds some important constants
*
* @author Everel
*
*/
public class Configuration {
public static final String LOGIN_SERVER = "http://www.parabot.org/community/api/login.php?username=%s&password=%s";
+15 -7
View File
@@ -1,10 +1,5 @@
package org.parabot.core;
import java.applet.Applet;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.TimerTask;
import org.parabot.core.asm.ASMClassLoader;
import org.parabot.core.classpath.ClassPath;
import org.parabot.core.paint.PaintDebugger;
@@ -17,11 +12,15 @@ import org.parabot.environment.input.Mouse;
import org.parabot.environment.scripts.Script;
import org.parabot.environment.servers.ServerProvider;
import java.applet.Applet;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.TimerTask;
/**
* Game context
*
* @author Everel
*
*/
public class Context {
public static HashMap<ThreadGroup, Context> threadGroups = new HashMap<ThreadGroup, Context>();
@@ -82,6 +81,7 @@ public class Context {
/**
* Sets the hook parser
*
* @param hookParser
*/
public void setHookParser(final HookParser hookParser) {
@@ -90,6 +90,7 @@ public class Context {
/**
* Sets the mouse
*
* @param mouse
*/
public void setMouse(final Mouse mouse) {
@@ -98,6 +99,7 @@ public class Context {
/**
* Gets the mouse
*
* @return mouse
*/
public Mouse getMouse() {
@@ -107,6 +109,7 @@ public class Context {
/**
* Sets the keyboard
*
* @param keyboard
*/
public void setKeyboard(final Keyboard keyboard) {
@@ -115,6 +118,7 @@ public class Context {
/**
* Gets the keyboard
*
* @return keyboard
*/
public Keyboard getKeyboard() {
@@ -158,7 +162,8 @@ public class Context {
Core.verbose("Injecting hooks...");
serverProvider.injectHooks();
Core.verbose("Done.");
Core.verbose("Fetching game applet...");;
Core.verbose("Fetching game applet...");
;
gameApplet = serverProvider.fetchApplet();
if (getClient() == null) {
setClientInstance(gameApplet);
@@ -268,6 +273,7 @@ public class Context {
/**
* Gets the hook parser, may be null if injection is not used or a custom hook parser is used for injecting
*
* @return hook parser
*/
public HookParser getHookParser() {
@@ -276,6 +282,7 @@ public class Context {
/**
* Sets the current running script, if a script stops it will call this method with a null argument
*
* @param script
*/
public void setRunningScript(final Script script) {
@@ -284,6 +291,7 @@ public class Context {
/**
* Gets the current running script
*
* @return script
*/
public Script getRunningScript() {