cicaprojekt/cicaprojekt/Gap.java
Kjistóf 89a1da497f now "flying" Stargates destroy Replicators, and belonging bugfix
Game.playerBaseDestroyed() is not called everythime a PlayerBase is
destroyed.
2016-05-13 23:52:10 +02:00

29 lines
642 B
Java

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