Stargate isn't initialized with nullpointers now

This commit is contained in:
Bokros Bálint 2016-03-29 11:52:19 +02:00 committed by Kjistóf
parent 07d7934524
commit 5ece8b8f27

View File

@ -6,13 +6,15 @@ public class Stargate {
public static final Stargate yellowStargate = 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;
public static void init() {
Menu.addTab();
System.out.println(">" + "[" + ":" + "Stargate" + "]" + Menu.tabulator + "Stargate.init()");
yellowStargate.other = blueStargate;
blueStargate.other = yellowStargate;
System.out.println("<" + "[" + ":" + "Stargate" + "]" + Menu.tabulator + "Stargate.init()");
Menu.removeTab();
}