diff --git a/cicaprojekt/Tile.java b/cicaprojekt/Tile.java index 7e3bd09..5b90ccd 100644 --- a/cicaprojekt/Tile.java +++ b/cicaprojekt/Tile.java @@ -23,6 +23,12 @@ public abstract class Tile { return adjacentTile.get(direction); } + public void setAdajacentTile(Tile newTile, Direction direction) { + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Tile.setAdjacentTile(" + "newTile, " + direction.name() + ")"); + 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();