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