Gap - finished

This commit is contained in:
ericnerdo 2016-04-24 22:28:09 +02:00
parent a276a9e6e1
commit cbd196532f

View File

@ -1,16 +1,26 @@
package cicaprojekt; package cicaprojekt;
public class Gap extends Tile public class Gap extends cicaprojekt.Tile
{ {
public Gap(){
super();
}
@Override @Override
public void spawnStargate(Stargate stargate, Direction direction) { public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) {
adjacentTile.get(direction).spawnStargate(stargate, direction); adjacentTile.get(direction).spawnStargate(stargate, direction);
} }
public void onEntry() { public void onEntry(PlayerBase playerBase) {
this.removeItemFromTile().destroy(); playerBase.destroy();
} }
public void onExit() { 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();
} }
} }