diff --git a/cicaprojekt/Dungeon.java b/cicaprojekt/Dungeon.java index 5cfd36a..fe9b061 100644 --- a/cicaprojekt/Dungeon.java +++ b/cicaprojekt/Dungeon.java @@ -33,9 +33,13 @@ public class Dungeon { * R: Replicator */ Map buildDungeon(File input) throws IOException { - Tile oneilllocation = null; - Tile jaffalocation = null; - Tile replicatorlocation = null; + Tile defaultTile = new Field(); + defaultTile.setX(-666); + defaultTile.setY(-666); + + Tile oneilllocation = defaultTile; + Tile jaffalocation = defaultTile; + Tile replicatorlocation = defaultTile; try(BufferedReader reader = new BufferedReader(new FileReader(input))) { String[] sizedata = reader.readLine().split("x"); // read size data at beginning of file