Package fr.formiko.formiko
Class chargerCarte
java.lang.Object
fr.formiko.formiko.chargerCarte
To load a map as a GCase from a .csv file.
- Author:
- Hydrolien
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GCase
chargerCarte
(String fichier) Load a map as a GCase from a .csv file.private static int
return the number of items per line in a String [] from a .csv file.private static int
nbLineNonEmpty
(String[] s) return the number of lines in a Sring [] from a .csv file.
-
Constructor Details
-
chargerCarte
public chargerCarte()
-
-
Method Details
-
chargerCarte
Load a map as a GCase from a .csv file. Only type of case are saved. They are saved as int split by ",". Lines are split by "\n". -
nbLineNonEmpty
return the number of lines in a Sring [] from a .csv file. -
nbItemPerLine
return the number of items per line in a String [] from a .csv file.
-