|
|
@ -1,6 +1,8 @@
|
|
|
|
package json;
|
|
|
|
package json;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import modeles.Arme;
|
|
|
|
|
|
|
|
import modeles.Labyrinthe;
|
|
|
|
import modeles.Monstre;
|
|
|
|
import modeles.Monstre;
|
|
|
|
|
|
|
|
|
|
|
|
public class main {
|
|
|
|
public class main {
|
|
|
@ -8,8 +10,15 @@ public class main {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
gsonGenerator generateur = new gsonGenerator();
|
|
|
|
gsonGenerator generateur = new gsonGenerator();
|
|
|
|
Monstre monstr = new Monstre("test", 5);
|
|
|
|
Monstre monstr = new Monstre("test", 5);
|
|
|
|
String chaine = "{'positionX':0,'positionY':0,'sortie':false,'monstre':[{'nom':'premier monstre','pAttaque':5}],'porte':[{'ouvert':true, 'position':'H'}]}";
|
|
|
|
String chaine = "{\"positionX\":0,\"positionY\":0,\"sortie\":false,\"monstre\":[{\"nom\":\"premier monstre\",\"pAttaque\":5}],\"porte\":[{\"ouvert\":true, \"position\":\"H\"}]}";
|
|
|
|
generateur.generate(chaine);
|
|
|
|
generateur.generate(chaine);
|
|
|
|
|
|
|
|
System.out.println("test");
|
|
|
|
|
|
|
|
System.out.println(System.getProperty("user.dir"));
|
|
|
|
|
|
|
|
Generateur gene = new Generateur();
|
|
|
|
|
|
|
|
Labyrinthe lab = gene.labyrithe();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Arme arme = new Arme("arme1", 10, 10, 10);
|
|
|
|
|
|
|
|
System.out.println("");
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|