Fixed default Tile coordinates
This commit is contained in:
parent
88f2c3103f
commit
e97d8c4c6d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user