1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-10-30 03:11:05 +00:00

should work

This commit is contained in:
Fastium
2022-06-13 20:53:09 +02:00
parent a4b760fe66
commit ba7694528f
8 changed files with 107 additions and 46 deletions

View File

@@ -11,14 +11,15 @@ public class FightData {
private File file;
private static final String REGEX = ",";
public int nbre_line =0;
public FightData(String name) {
file = new File("./resources/Battle/Fight/" + name + ".csv");
}
public void readFile() {
Attack attack;
String line = "";
@@ -43,7 +44,8 @@ public class FightData {
} catch (Exception e) {
e.printStackTrace();
}
System.out.println(attacks.size());
}
//return the vector with all attaks of one enemi
@@ -56,6 +58,10 @@ public class FightData {
return attacks.get(a);
}
}