Added Game#getSettings and Game#getSetting

This commit is contained in:
JKetelaar
2014-10-29 11:13:11 +01:00
parent 4d8d551436
commit 52382c8a8e
2 changed files with 22 additions and 0 deletions
+2
View File
@@ -48,4 +48,6 @@ public interface Client {
public void doAction(int i);
public int[] getCurrentStats();
public int[] getSettings();
}
+20
View File
@@ -84,4 +84,24 @@ public class Game {
}
}
/**
* Returns the settings within the client
*
* @param index The index of the setting you want to gather
*
* @return The specific setting for the given index
*/
public static int getSetting(int index){
return Loader.getClient().getSettings()[index];
}
/**
* Returns all the settings within the client
*
* @return All settings
*/
public static int[] getSettings(){
return Loader.getClient().getSettings();
}
}