From 64e6aec17600c0d7d1bff2157c6dd51846f3c0a7 Mon Sep 17 00:00:00 2001 From: ericnerdo Date: Sun, 24 Apr 2016 18:36:11 +0200 Subject: [PATCH] Implemented onExit in Wall --- cicaprojekt/Wall.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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?"); } }