Added red and green Stargates

This commit is contained in:
Bokros Bálint 2016-04-24 20:09:53 +02:00
parent 708ad09c5e
commit c6a0b984eb

View File

@ -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() {