diff --git a/cicaprojekt/Gap.java b/cicaprojekt/Gap.java index fb1d807..a07d80a 100644 --- a/cicaprojekt/Gap.java +++ b/cicaprojekt/Gap.java @@ -1,16 +1,26 @@ package cicaprojekt; -public class Gap extends Tile +public class Gap extends cicaprojekt.Tile { + public Gap(){ + super(); + } + @Override - public void spawnStargate(Stargate stargate, Direction direction) { + public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) { adjacentTile.get(direction).spawnStargate(stargate, direction); } - public void onEntry() { - this.removeItemFromTile().destroy(); + public void onEntry(PlayerBase playerBase) { + playerBase.destroy(); } - public void onExit() { + 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(); } }