Commit 0c939441 authored by Noah CHATELAIN's avatar Noah CHATELAIN

Update Map.java

parent 62e94151
...@@ -18,10 +18,10 @@ import wargame.Player; ...@@ -18,10 +18,10 @@ import wargame.Player;
import wargame.PlayerRound; import wargame.PlayerRound;
import wargame.Field; import wargame.Field;
import java.io.File; // Import the File class import java.io.File;
import java.io.FileNotFoundException; // Import this class to handle errors import java.io.FileNotFoundException;
import java.util.Scanner; // Import the Scanner class to read text files import java.util.Scanner;
import java.util.ArrayList; // import the ArrayList class import java.util.ArrayList;
public class Map { public class Map {
...@@ -31,7 +31,6 @@ public class Map { ...@@ -31,7 +31,6 @@ public class Map {
String[][] tabMap; String[][] tabMap;
//TODO: il faut agir
public Tile[][] cells = new Tile[200][200]; public Tile[][] cells = new Tile[200][200];
public Map() {} public Map() {}
...@@ -49,7 +48,6 @@ public class Map { ...@@ -49,7 +48,6 @@ public class Map {
int i = 0; int i = 0;
while (myReader.hasNextLine()) { while (myReader.hasNextLine()) {
String data = myReader.nextLine(); String data = myReader.nextLine();
//System.out.println(data);
dataMap[i] = data.split(","); dataMap[i] = data.split(",");
i++; i++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment