mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 08:39:12 +00:00
Fixed some formats
This commit is contained in:
@@ -1,11 +1,9 @@
|
|||||||
package org.parabot.core;
|
package org.parabot.core;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* Holds some important constants
|
* Holds some important constants
|
||||||
*
|
*
|
||||||
* @author Everel
|
* @author Everel
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class Configuration {
|
public class Configuration {
|
||||||
public static final String LOGIN_SERVER = "http://www.parabot.org/community/api/login.php?username=%s&password=%s";
|
public static final String LOGIN_SERVER = "http://www.parabot.org/community/api/login.php?username=%s&password=%s";
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
package org.parabot.core;
|
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.asm.ASMClassLoader;
|
||||||
import org.parabot.core.classpath.ClassPath;
|
import org.parabot.core.classpath.ClassPath;
|
||||||
import org.parabot.core.paint.PaintDebugger;
|
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.scripts.Script;
|
||||||
import org.parabot.environment.servers.ServerProvider;
|
import org.parabot.environment.servers.ServerProvider;
|
||||||
|
|
||||||
|
import java.applet.Applet;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.TimerTask;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Game context
|
* Game context
|
||||||
*
|
*
|
||||||
* @author Everel
|
* @author Everel
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class Context {
|
public class Context {
|
||||||
public static HashMap<ThreadGroup, Context> threadGroups = new HashMap<ThreadGroup, Context>();
|
public static HashMap<ThreadGroup, Context> threadGroups = new HashMap<ThreadGroup, Context>();
|
||||||
@@ -82,6 +81,7 @@ public class Context {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the hook parser
|
* Sets the hook parser
|
||||||
|
*
|
||||||
* @param hookParser
|
* @param hookParser
|
||||||
*/
|
*/
|
||||||
public void setHookParser(final HookParser hookParser) {
|
public void setHookParser(final HookParser hookParser) {
|
||||||
@@ -90,6 +90,7 @@ public class Context {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the mouse
|
* Sets the mouse
|
||||||
|
*
|
||||||
* @param mouse
|
* @param mouse
|
||||||
*/
|
*/
|
||||||
public void setMouse(final Mouse mouse) {
|
public void setMouse(final Mouse mouse) {
|
||||||
@@ -98,6 +99,7 @@ public class Context {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the mouse
|
* Gets the mouse
|
||||||
|
*
|
||||||
* @return mouse
|
* @return mouse
|
||||||
*/
|
*/
|
||||||
public Mouse getMouse() {
|
public Mouse getMouse() {
|
||||||
@@ -107,6 +109,7 @@ public class Context {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the keyboard
|
* Sets the keyboard
|
||||||
|
*
|
||||||
* @param keyboard
|
* @param keyboard
|
||||||
*/
|
*/
|
||||||
public void setKeyboard(final Keyboard keyboard) {
|
public void setKeyboard(final Keyboard keyboard) {
|
||||||
@@ -115,6 +118,7 @@ public class Context {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the keyboard
|
* Gets the keyboard
|
||||||
|
*
|
||||||
* @return keyboard
|
* @return keyboard
|
||||||
*/
|
*/
|
||||||
public Keyboard getKeyboard() {
|
public Keyboard getKeyboard() {
|
||||||
@@ -158,7 +162,8 @@ public class Context {
|
|||||||
Core.verbose("Injecting hooks...");
|
Core.verbose("Injecting hooks...");
|
||||||
serverProvider.injectHooks();
|
serverProvider.injectHooks();
|
||||||
Core.verbose("Done.");
|
Core.verbose("Done.");
|
||||||
Core.verbose("Fetching game applet...");;
|
Core.verbose("Fetching game applet...");
|
||||||
|
;
|
||||||
gameApplet = serverProvider.fetchApplet();
|
gameApplet = serverProvider.fetchApplet();
|
||||||
if (getClient() == null) {
|
if (getClient() == null) {
|
||||||
setClientInstance(gameApplet);
|
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
|
* Gets the hook parser, may be null if injection is not used or a custom hook parser is used for injecting
|
||||||
|
*
|
||||||
* @return hook parser
|
* @return hook parser
|
||||||
*/
|
*/
|
||||||
public HookParser getHookParser() {
|
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
|
* Sets the current running script, if a script stops it will call this method with a null argument
|
||||||
|
*
|
||||||
* @param script
|
* @param script
|
||||||
*/
|
*/
|
||||||
public void setRunningScript(final Script script) {
|
public void setRunningScript(final Script script) {
|
||||||
@@ -284,6 +291,7 @@ public class Context {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current running script
|
* Gets the current running script
|
||||||
|
*
|
||||||
* @return script
|
* @return script
|
||||||
*/
|
*/
|
||||||
public Script getRunningScript() {
|
public Script getRunningScript() {
|
||||||
|
|||||||
Reference in New Issue
Block a user