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 */
Map<String, Tile> 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