made cosmetic changes to most of the files: unified coding style

This commit is contained in:
Kjistóf 2016-04-23 17:15:19 +02:00
parent 7eeeefa3e2
commit e041576547
11 changed files with 10 additions and 9 deletions

View File

@ -10,6 +10,7 @@ public class Field extends cicaprojekt.Tile
private static boolean testAdjTileSet = false;
private static int recursionLimit = 0;
public Field() {
setItemOnTile(new Box());
@ -53,5 +54,4 @@ public class Field extends cicaprojekt.Tile
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Field.onExit()");
Menu.removeTab();
}
}

View File

@ -6,7 +6,8 @@ import java.util.TimerTask;
public class FlowOfTime extends Timer{
private TimerTask timeup;
private long gametime;
public void start()
{
Menu.addTab();

View File

@ -4,7 +4,8 @@ public class Game {
private Player oneill;
private Dungeon dungeon;
private FlowOfTime flowoftime;
public void allZPMsCollected() {
Menu.addTab();
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Game.allZPMsCollected()");

View File

@ -4,6 +4,7 @@ public class Gate extends cicaprojekt.Tile
{
private boolean open = false;
public void spawnStargate(cicaprojekt.Stargate stargate, Direction direction) {
Menu.addTab();
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Gate.spawnStargate(" + stargate + direction + ")");

View File

@ -1,6 +1,5 @@
package cicaprojekt;
public interface Measurable {
public int weight();
}

View File

@ -6,6 +6,7 @@ import java.util.Scanner;
public class Menu {
public static String tabulator = "\t";
public static void addTab()
{
tabulator += '\t';

View File

@ -1,11 +1,11 @@
package cicaprojekt;
public class PlayerBase implements Destroyable{
protected Game game;
protected Tile currentTile;
protected Direction facingDirection;
public void destroy() {
Menu.addTab();
System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Player.destroy()");
@ -89,5 +89,4 @@ public class PlayerBase implements Destroyable{
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Player.setFacingDirection()");
Menu.removeTab();
}
}

View File

@ -1,7 +1,6 @@
package cicaprojekt;
public class Stargate {
private boolean isSpawned;
public static final Stargate yellowStargate = new Stargate();
@ -10,6 +9,7 @@ public class Stargate {
private cicaprojekt.Wall currentWall;
public static void init() {
Menu.addTab();
System.out.println(">" + "[" + ":" + "Stargate" + "]" + Menu.tabulator + "Stargate.init()");

View File

@ -36,6 +36,7 @@ public abstract class Tile {
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Tile.setAdjacentTile(" + "newTile, " + direction.name() + ")");
Menu.removeTab();
}
public abstract void spawnStargate(Stargate stargate, Direction direction);
public abstract void onEntry();

View File

@ -37,5 +37,4 @@ public class Wall extends Tile {
System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Wall.onExit()");
Menu.removeTab();
}
}

View File

@ -2,7 +2,6 @@ package cicaprojekt;
public class ZPM implements Pickable
{
public void pick()
{
Menu.addTab();