Fixed default Tile coordinates

This commit is contained in:
Bokros Bálint 2016-04-26 01:06:29 +02:00
parent 88f2c3103f
commit e97d8c4c6d

View File

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