reformatted code

This commit is contained in:
Bokros Bálint
2016-04-24 23:01:34 +02:00
parent d0d656452c
commit 1ab13398bb
19 changed files with 365 additions and 382 deletions

View File

@ -1,33 +1,32 @@
package cicaprojekt;
public class Wall extends Tile {
private Stargate sg;
private Stargate sg;
public Wall(){
super();
}
public void spawnStargate(Stargate stargate, Direction direction) {
if(sg == null)
sg = stargate;
else
return;
}
public Wall() {
super();
}
public void clearStargate() {
sg = null;
}
public void onEntry(PlayerBase playerBase) {
if(sg == null) {
return;
}
else {
sg.teleport(playerBase.facingDirection);
}
}
public void spawnStargate(Stargate stargate, Direction direction) {
if (sg == null)
sg = stargate;
else
return;
}
public void onExit(PlayerBase playerBase) throws IllegalStateException {
throw new IllegalStateException("Hiba! Te hogy kerültél a falba?");
}
public void clearStargate() {
sg = null;
}
public void onEntry(PlayerBase playerBase) {
if (sg == null) {
return;
} else {
sg.teleport(playerBase.facingDirection);
}
}
public void onExit(PlayerBase playerBase) throws IllegalStateException {
throw new IllegalStateException("Hiba! Te hogy kerültél a falba?");
}
}