diff --git a/src/MAndEngine/AppHelper.java b/src/MAndEngine/AppHelper.java index 4f30819..f0656e4 100644 --- a/src/MAndEngine/AppHelper.java +++ b/src/MAndEngine/AppHelper.java @@ -7,8 +7,10 @@ import java.util.ArrayList; import java.util.Scanner; /** - * also a bit of an app helper class thing - * well... i renamed it so, now it just is an app helper class thing. + * this class is a jack of all trades when it comes to information about apps. + * it can tell you things about apps and as well, initialize a list of them + * so that you can later use them in your main menu app! + * * @author Marcus * */ diff --git a/src/MAndEngine/Engine.java b/src/MAndEngine/Engine.java index fe690be..5bee705 100644 --- a/src/MAndEngine/Engine.java +++ b/src/MAndEngine/Engine.java @@ -134,7 +134,7 @@ public class Engine extends Canvas implements KeyListener, MouseMotionListener, /** * debug level. */ - public static int debug = 0; + public static int debug = 2; /** * because retina support @@ -468,4 +468,4 @@ public class Engine extends Canvas implements KeyListener, MouseMotionListener, // TODO Auto-generated method stub } -} \ No newline at end of file +} diff --git a/src/MAndEngine/Utils.java b/src/MAndEngine/Utils.java new file mode 100644 index 0000000..ecfd01e --- /dev/null +++ b/src/MAndEngine/Utils.java @@ -0,0 +1,7 @@ +package MAndEngine; + +public class Utils { + public static int rand(int low, int high) { + return (int)(Math.random() * (high - low + 1) + low); + } +} diff --git a/src/MAndEngine/Variable.java b/src/MAndEngine/Variable.java index 7388ffa..f6fc77b 100644 --- a/src/MAndEngine/Variable.java +++ b/src/MAndEngine/Variable.java @@ -7,11 +7,9 @@ import java.util.Formatter; import java.util.Scanner; /** - * to note, will not work on Mac yet. - * - * edit: WILL WORK ON MAC MOTHER FUCKERS - * - * edit: idek if this will work on macs because app data... + * helpful little class that creates a string variable that gets saved in application + * data. when you write to it, it gets saved as that file. and yes it only works on + * windows because i used backslashes and not the respective seperative character. * * @author Marcus * @@ -62,8 +60,8 @@ public class Variable { String str = getValueFromFile(); // if we could not load a value from the file - // AKA didnt fucking exist. - // ORRRRRRR if you were an ass, and forced + // AKA didnt exist. + // ORRRRRRR if you forced // the value. if (str == null) { this.value = value; @@ -113,9 +111,6 @@ public class Variable { f.format("" + value); f.close(); } catch (Exception e) { - // if(weArriveHere){ - // we.are("fucked"); - // } e.printStackTrace(); } } @@ -134,19 +129,15 @@ public class Variable { private void createFile() { //make the directory because god knows, java can't do that for us //when we say we want a new file in an unknown folder noooooo.... - //jackass java - File f = new File(fileDir); - f.mkdirs(); + File file = new File(fileDir); + file.mkdirs(); //no onto the file itself. create the object - f = new File(filePath); + file = new File(filePath); try { //hopefully make the file... - f.createNewFile(); + file.createNewFile(); } catch (IOException e) { - // if(weArriveHere){ - // we.are("fucked"); - // } e.printStackTrace(); } }