reformatted code
This commit is contained in:
@ -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?");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user