Gap - finished
This commit is contained in:
parent
a276a9e6e1
commit
cbd196532f
@ -1,16 +1,26 @@
|
||||
package cicaprojekt;
|
||||
|
||||
public class Gap extends Tile
|
||||
public class Gap extends cicaprojekt.Tile
|
||||
{
|
||||
public Gap(){
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void spawnStargate(Stargate stargate, Direction direction) {
|
||||
public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) {
|
||||
adjacentTile.get(direction).spawnStargate(stargate, direction);
|
||||
}
|
||||
|
||||
public void onEntry() {
|
||||
this.removeItemFromTile().destroy();
|
||||
public void onEntry(PlayerBase playerBase) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user