33 lines
718 B
Java
33 lines
718 B
Java
package cicaprojekt;
|
|
|
|
public class Stargate {
|
|
private boolean isSpawned;
|
|
|
|
public static final Stargate yellowStargate = new Stargate();
|
|
public static final Stargate blueStargate = new Stargate();
|
|
public /*final*/ Stargate other; //TODO find better ways to do this
|
|
|
|
private cicaprojekt.Wall currentWall;
|
|
|
|
|
|
public static void init() {
|
|
yellowStargate.other = blueStargate;
|
|
blueStargate.other = yellowStargate;
|
|
}
|
|
|
|
public cicaprojekt.Wall getCurrentWall() {
|
|
return currentWall;
|
|
}
|
|
|
|
public void setCurrentWall(cicaprojekt.Wall wall) {
|
|
currentWall = wall;
|
|
}
|
|
|
|
public boolean isOpen() {
|
|
return isSpawned;
|
|
}
|
|
|
|
public void teleport(Direction incomingDirection) {
|
|
}
|
|
}
|