cicaprojekt/cicaprojekt/Gap.java
2016-04-24 23:01:34 +02:00

26 lines
645 B
Java

package cicaprojekt;
public class Gap extends cicaprojekt.Tile {
public Gap() {
super();
}
@Override
public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) {
adjacentTile.get(direction).spawnStargate(stargate, direction);
}
public void onEntry(PlayerBase playerBase) {
playerBase.destroy();
}
public void onExit(PlayerBase playerBase) throws IllegalStateException {
throw new IllegalStateException("Hiba! A szakadékból nem jut ki semmi!");
}
@Override
public void putABox(Box box) {
box.destroy();
}
}