diff --git a/JAVA/PROJET-PMT_STRI1A/src/modeles/Generateur.java b/JAVA/PROJET-PMT_STRI1A/src/modeles/Generateur.java index bde4452..b499748 100644 --- a/JAVA/PROJET-PMT_STRI1A/src/modeles/Generateur.java +++ b/JAVA/PROJET-PMT_STRI1A/src/modeles/Generateur.java @@ -14,7 +14,7 @@ import com.google.gson.Gson; public class Generateur { - public Labyrinthe labyrithe() { + public Labyrinthe labyrinthe() { BufferedReader bfr= null; try { bfr = new BufferedReader(new FileReader("C:\\Users\\Nicolas\\eclipse-workspace\\Projet_Java\\JAVA\\PROJET-PMT_STRI1A\\src\\json\\lab.json")); diff --git a/JAVA/PROJET-PMT_STRI1A/src/modeles/Labyrinthe.java b/JAVA/PROJET-PMT_STRI1A/src/modeles/Labyrinthe.java index c86894e..cd53282 100644 --- a/JAVA/PROJET-PMT_STRI1A/src/modeles/Labyrinthe.java +++ b/JAVA/PROJET-PMT_STRI1A/src/modeles/Labyrinthe.java @@ -5,26 +5,21 @@ package modeles; import java.util.*; -/** - * @author flavien - * - */ public class Labyrinthe { protected List listePersonnage=new ArrayList(); protected List listeArme= new ArrayList(); protected List listeArmure=new ArrayList(); protected List listePorte=new ArrayList(); protected List listeMonstre=new ArrayList(); - + public void generateLabyrinthe(int nInstance) { /*switch (nInstance) - case 1 : + case 1 : return Labyrinthe1(); break; }*/ labyrinthe1(); } - public void labyrinthe1() { Arme arme=new Arme("Epee en bois",5,10,2); listeArme.add(arme); @@ -50,69 +45,69 @@ public class Labyrinthe { listePersonnage.add(perso); Personnage perso2=new Personnage("Boromis",8,2); listePersonnage.add(perso2); - + Monstre mons = new Monstre("pantin en bois",5, 1); Monstre mons2= new Monstre("araignee geante agressive", 7, 5); Monstre mons3=new Monstre("pantin de fer",40,1); Monstre mons4 = new Monstre("Golem de Jade",40, 3); Monstre mons5 = new Monstre("Neltharion le Gardeterre",100,10); Monstre mons6 = new Monstre("Neltharion, le Destructeur", 80,20); - + this.listeMonstre.add(mons); this.listeMonstre.add(mons2); this.listeMonstre.add(mons3); this.listeMonstre.add(mons4); this.listeMonstre.add(mons5); this.listeMonstre.add(mons6); - + Marche marche = new Marche(null); - + Listtable=new ArrayList(); Random rd= new Random(); for (int i = 0; itable2=new ArrayList(); for (int i = 0; itable3=new ArrayList(); for (int i = 0; itable4=new ArrayList(); for (int i = 0; itable5=new ArrayList(); - for (int i = 0; i