diff --git a/cicaprojekt/Wall.java b/cicaprojekt/Wall.java index 9d1cc89..a6eed9e 100644 --- a/cicaprojekt/Wall.java +++ b/cicaprojekt/Wall.java @@ -11,13 +11,20 @@ public class Wall extends Tile { return; } - public void clearStargate(){ - sg = null; + public void clearStargate() { + sg = null; } public void onEntry() { + if(sg == null) { + + } + else { + + } } public void onExit() { + throw new IllegalStateException("Hiba! Te hogy kerültél a falba?"); } }