2016-03-27 22:27:24 +00:00
|
|
|
package cicaprojekt;
|
|
|
|
|
2016-04-24 21:01:34 +00:00
|
|
|
public class Gap extends cicaprojekt.Tile {
|
|
|
|
public Gap() {
|
|
|
|
super();
|
|
|
|
}
|
2016-03-27 22:27:24 +00:00
|
|
|
|
2016-05-13 15:59:14 +00:00
|
|
|
@Override
|
|
|
|
public boolean isSteppable()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-04-24 21:01:34 +00:00
|
|
|
public void onEntry(PlayerBase playerBase) {
|
2016-05-13 21:52:10 +00:00
|
|
|
super.onEntry(playerBase);
|
2016-04-24 21:01:34 +00:00
|
|
|
playerBase.destroy();
|
2016-05-13 21:52:10 +00:00
|
|
|
Game.instance.playerBaseDestroyed(playerBase);
|
2016-04-24 21:01:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
2016-03-27 22:27:24 +00:00
|
|
|
}
|