fixed errors associated with moving components to their own folder

master
Marcus Gosselin 2016-03-10 15:02:49 -05:00
parent 0bd51788cb
commit d2a8704ac9
2 changed files with 3 additions and 3 deletions

View File

@ -140,7 +140,7 @@ public class SceneManager {
} }
} catch( ClassNotFoundException e) { } catch( ClassNotFoundException e) {
try { try {
Object maybeComponent = Class.forName("diveengine2d." + componentClass).newInstance(); Object maybeComponent = Class.forName("diveengine2d.components." + componentClass).newInstance();
if(maybeComponent instanceof DiveScript) { if(maybeComponent instanceof DiveScript) {
component = (DiveScript)maybeComponent; component = (DiveScript)maybeComponent;
}else { }else {

View File

@ -6,8 +6,8 @@ import java.awt.Graphics2D;
public class Tests { public class Tests {
public static void run(Graphics2D g) { public static void run(Graphics2D g) {
triangleTest(g); //triangleTest(g);
coordinateTest(g); //coordinateTest(g);
} }
private static void coordinateTest(Graphics2D g) { private static void coordinateTest(Graphics2D g) {