From aa377bbc1cc9d90b9ac77b10392911cd132f3aa8 Mon Sep 17 00:00:00 2001 From: Fauvet matthis Date: Fri, 28 Apr 2023 20:37:00 +0200 Subject: [PATCH] Update 'GestionChoixAlgo.java' --- GestionChoixAlgo.java | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/GestionChoixAlgo.java b/GestionChoixAlgo.java index b7cf22c..03c1de2 100644 --- a/GestionChoixAlgo.java +++ b/GestionChoixAlgo.java @@ -16,7 +16,12 @@ public class GestionChoixAlgo extends JFrame implements ActionListener { private JFrame frameGrille; private boolean[][] cetteGrille; private Cellules[][] cetteGrilleCell; - + /** + * Class qui créer un objet Algo determinatif pour résoudre le Labyrinthe + * @param unPerso On rentre + * @param grille c'est la grille de true et false qui permet de savoir si une cellules est un mur ou un couloir + * @param coord tableau double dimension qui stock les différentes Cellules. + */ public GestionChoixAlgo(int uneTaille, JFrame uneFrame, ButtonGroup group0, ButtonGroup group1, boolean[][] uneGrille, Cellules[][] grilleCell,JFrame uneFenetre){ this.cetteFrame = uneFrame; this.ceGroupe0 = group0; @@ -27,8 +32,13 @@ public class GestionChoixAlgo extends JFrame implements ActionListener { this.frameGrille=uneFenetre; this.cetteGrille = uneGrille; this.cetteGrilleCell=grilleCell; - } - + } + /** + * Class qui créer un objet Algo determinatif pour résoudre le Labyrinthe + * @param unPerso On rentre + * @param grille c'est la grille de true et false qui permet de savoir si une cellules est un mur ou un couloir + * @param coord tableau double dimension qui stock les différentes Cellules. + */ public void actionPerformed(ActionEvent e){ this.cetteFrame.dispose(); if(this.ceGroupe0.getSelection().getActionCommand()=="Aalea" && this.ceGroupe1.getSelection().getActionCommand()=="Vauto")