Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
WarGame
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Noah CHATELAIN
WarGame
Commits
0c939441
Commit
0c939441
authored
May 10, 2021
by
Noah CHATELAIN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Map.java
parent
62e94151
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Map.java
src/com/wargame/Map.java
+4
-6
No files found.
src/com/wargame/Map.java
View file @
0c939441
...
@@ -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
++;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment