cicaprojekt/cicaprojekt/Gap.java

36 lines
697 B
Java

package cicaprojekt;
public class Gap extends cicaprojekt.Tile {
public Gap() {
super();
}
@Override
public boolean isSteppable()
{
return true;
}
@Override
public boolean isGap()
{
return true;
}
@Override
public void onEntry(PlayerBase playerBase) {
super.onEntry(playerBase);
playerBase.destroy();
}
@Override
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();
}
}