Added missing override annotations

This commit is contained in:
Bokros Bálint
2016-05-14 13:47:14 +02:00
parent b02a5756a5
commit f8eb39d2fb
7 changed files with 12 additions and 0 deletions

View File

@ -30,12 +30,14 @@ public class Wall extends Tile {
}
}
@Override
public void onEntry(PlayerBase playerBase) {
super.onEntry(playerBase);
if (sg != null)
sg.teleport(playerBase);
}
@Override
public void onExit(PlayerBase playerBase) throws IllegalStateException {
if(sg != null) return;
throw new IllegalStateException("Hiba! Te hogy kerültél a falba?");