diff --git a/cicaprojekt/Stargate.java b/cicaprojekt/Stargate.java index 2fdbc25..81051d3 100644 --- a/cicaprojekt/Stargate.java +++ b/cicaprojekt/Stargate.java @@ -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(); }