From c6a0b984eb01c817328e47770f046ac257fb011d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Sun, 24 Apr 2016 20:09:53 +0200 Subject: [PATCH] Added red and green Stargates --- cicaprojekt/Stargate.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cicaprojekt/Stargate.java b/cicaprojekt/Stargate.java index 5c3e578..c365dc7 100644 --- a/cicaprojekt/Stargate.java +++ b/cicaprojekt/Stargate.java @@ -2,9 +2,11 @@ package cicaprojekt; public class Stargate { private boolean isSpawned; - + public static final Stargate yellowStargate = new Stargate(); public static final Stargate blueStargate = new Stargate(); + public static final Stargate redStargate = new Stargate(); + public static final Stargate greenStargate = new Stargate(); public /*final*/ Stargate other; //TODO find better ways to do this private Wall currentWall; @@ -13,6 +15,8 @@ public class Stargate { public static void init() { yellowStargate.other = blueStargate; blueStargate.other = yellowStargate; + redStargate.other = greenStargate; + greenStargate.other = redStargate; } public Wall getCurrentWall() {