fixed errors associated with moving components to their own folder
parent
0bd51788cb
commit
d2a8704ac9
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue