Stargate isn't initialized with nullpointers now
This commit is contained in:
parent
07d7934524
commit
5ece8b8f27
@ -6,13 +6,15 @@ public class Stargate {
|
|||||||
|
|
||||||
public static final Stargate yellowStargate = new Stargate();
|
public static final Stargate yellowStargate = new Stargate();
|
||||||
public static final Stargate blueStargate = new Stargate();
|
public static final Stargate blueStargate = new Stargate();
|
||||||
public final Stargate other = null; /*null, hogy ne sírjon*/
|
public /*final*/ Stargate other; //TODO find better ways to do this
|
||||||
|
|
||||||
private cicaprojekt.Wall currentWall;
|
private cicaprojekt.Wall currentWall;
|
||||||
|
|
||||||
public static void init() {
|
public static void init() {
|
||||||
Menu.addTab();
|
Menu.addTab();
|
||||||
System.out.println(">" + "[" + ":" + "Stargate" + "]" + Menu.tabulator + "Stargate.init()");
|
System.out.println(">" + "[" + ":" + "Stargate" + "]" + Menu.tabulator + "Stargate.init()");
|
||||||
|
yellowStargate.other = blueStargate;
|
||||||
|
blueStargate.other = yellowStargate;
|
||||||
System.out.println("<" + "[" + ":" + "Stargate" + "]" + Menu.tabulator + "Stargate.init()");
|
System.out.println("<" + "[" + ":" + "Stargate" + "]" + Menu.tabulator + "Stargate.init()");
|
||||||
Menu.removeTab();
|
Menu.removeTab();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user