Re-arranged code

This commit is contained in:
JKetelaar
2014-08-19 03:08:07 +02:00
parent d19933b14f
commit 88050384f8
54 changed files with 2867 additions and 2843 deletions
+77 -71
View File
@@ -3,79 +3,85 @@ package org.rev317.min.api.methods;
import org.rev317.min.Loader;
/**
*
* @author Everel
*
*/
public class Game {
/**
* Gets BaseX
* @return baseX
*/
public static int getBaseX() {
return Loader.getClient().getBaseX();
}
/**
* Gets BaseY
* @return baseY
*/
public static int getBaseY() {
return Loader.getClient().getBaseY();
}
/**
* Gets open interface id
* @return interface id
*/
public static int getOpenInterfaceId() {
return Loader.getClient().getOpenInterfaceId();
}
/**
* Get open back dialog id
* @return back dialog id
*/
public static int getOpenBackDialogId() {
return Loader.getClient().getBackDialogId();
}
/**
* Gets loop cycle
* @return loop cycle
*/
public static int getLoopCycle() {
return Loader.getClient().getLoopCycle();
}
/**
* Get collision flags
* @return collision flags
*/
public static int[][] getCollisionFlags() {
return Loader.getClient().getCollisionMap()[Game.getPlane()].getFlags();
}
/**
* Gets current plane
* @return current plane
*/
public static int getPlane() {
return Loader.getClient().getPlane();
}
/**
* Determines whether this client has action 4 hooked
* @return <code>true</code> if action 4 is hooked
*/
public static boolean hasAction4() {
try {
Loader.getClient().getMenuAction4();
return true;
} catch(AbstractMethodError e) {
return false;
}
}
/**
* Gets BaseX
*
* @return baseX
*/
public static int getBaseX() {
return Loader.getClient().getBaseX();
}
/**
* Gets BaseY
*
* @return baseY
*/
public static int getBaseY() {
return Loader.getClient().getBaseY();
}
/**
* Gets open interface id
*
* @return interface id
*/
public static int getOpenInterfaceId() {
return Loader.getClient().getOpenInterfaceId();
}
/**
* Get open back dialog id
*
* @return back dialog id
*/
public static int getOpenBackDialogId() {
return Loader.getClient().getBackDialogId();
}
/**
* Gets loop cycle
*
* @return loop cycle
*/
public static int getLoopCycle() {
return Loader.getClient().getLoopCycle();
}
/**
* Get collision flags
*
* @return collision flags
*/
public static int[][] getCollisionFlags() {
return Loader.getClient().getCollisionMap()[Game.getPlane()].getFlags();
}
/**
* Gets current plane
*
* @return current plane
*/
public static int getPlane() {
return Loader.getClient().getPlane();
}
/**
* Determines whether this client has action 4 hooked
*
* @return <code>true</code> if action 4 is hooked
*/
public static boolean hasAction4() {
try {
Loader.getClient().getMenuAction4();
return true;
} catch (AbstractMethodError e) {
return false;
}
}
}