From 3385e4cecb74de91ff0418c9b9fc7c1bff8210dc Mon Sep 17 00:00:00 2001 From: Nicolas Date: Fri, 26 Apr 2019 18:44:42 +0200 Subject: [PATCH] ajout main pour test --- JAVA/PROJET-PMT_STRI1A/src/json/main.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/JAVA/PROJET-PMT_STRI1A/src/json/main.java b/JAVA/PROJET-PMT_STRI1A/src/json/main.java index 90d5283..d1c7de6 100644 --- a/JAVA/PROJET-PMT_STRI1A/src/json/main.java +++ b/JAVA/PROJET-PMT_STRI1A/src/json/main.java @@ -1,6 +1,8 @@ package json; +import modeles.Arme; +import modeles.Labyrinthe; import modeles.Monstre; public class main { @@ -8,8 +10,15 @@ public class main { public static void main(String[] args) { gsonGenerator generateur = new gsonGenerator(); 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); + 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(""); }