From 25a662563770917b64154ad0ca6c379dbd28b84c Mon Sep 17 00:00:00 2001 From: martins Date: Mon, 9 May 2022 16:19:50 +0200 Subject: [PATCH] ok --- observateurButtonEtText.class | Bin 1955 -> 1955 bytes observateurButtonEtText.java | 2 +- observateurSAV.class | Bin 981 -> 1087 bytes observateurSAV.java | 1 + plateau.class | Bin 8298 -> 8553 bytes plateau.java | 32 +++++++++++++++++--------------- sauvegarde.data | Bin 12960 -> 39650 bytes 7 files changed, 19 insertions(+), 16 deletions(-) diff --git a/observateurButtonEtText.class b/observateurButtonEtText.class index be01c5cd231db0738c4f0794df17de234c0c3e72..2b87e5cfd0db7d875017576a71d39f4b57614737 100644 GIT binary patch delta 14 VcmZ3?znFhR2OA^z=1w*#MgSxa1PlNG delta 14 VcmZ3?znFhR2OA^T=1w*#MgSxU1PcHF diff --git a/observateurButtonEtText.java b/observateurButtonEtText.java index e9116bb..ff6aea9 100644 --- a/observateurButtonEtText.java +++ b/observateurButtonEtText.java @@ -42,7 +42,7 @@ public class observateurButtonEtText implements ActionListener { } } if(this.fonction==2){ - if(this.plat.getLigne()!=-1 && this.plat.getLigne()!=-1 && this.plat.getBombe()!=-1){ + if(this.plat.getLigne()!=-1 && this.plat.getCollonne()!=-1 && this.plat.getBombe()!=-1){ this.plat.newGame(); } } diff --git a/observateurSAV.class b/observateurSAV.class index cf5ac8518a36364d2bc1ff11da95fe85399afd83..ff2136085a615bc727eb41c41375df39d1735334 100644 GIT binary patch delta 590 zcmZut%PvDv6kX@GdfMBg9(_<0Ev3CwTj~`^cO&-QB7;`-`|edsI+^yL2Q=eONgQ7MFZ zgg`rdFmw=JX6RI2WhPe1c?@x4!d)}6qQ^ZlQp>$a>JH}_Dh$?u)qf3ti(gzxG`(&I z+UO_HhyG9gF8to47M%7;ii4j3-fo76oMEeY49sZmi9V$hzkv_|079LlA&biOOo_5@xpKS W013btarg%EF!uh2r7nH*;(573KSG37AF3*JOrJIi4R~yq7)X| z+xt4kGb^GoCT5a*XYRe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SBSZovgXpUO7O4#m!C#f1fiJKrDg z4VuUaR~l>L}Zk^^dxbaV_>he58! zG4yCczcy5aVkN073!;P3ZMZa);SEZ{&u_tHPH=Pt+pPmz)rnmY3K|~S%)$sZ9P9wc zHlcUWkXxz_8V;u?!nw%dl>B$r@7}>#a|);HB+gFCKoioOm#Ed3kiF^~oU%jHUYV8~ zo*^%_Sos~FT#OWvpPP^8>-?15KO{en!TFNbQpHz3t@1yndJLVo%@m|((1Fz)$yn#)E*eKd2 zKEwyOg%5IvXnVMs`}qhD@KJur$9PCQhq=`i_HdiaH@{6;v2;&%Jbm>S5;JUjEO;XffpI_NVUwZ}E` z$v5N%t@fME&uBwo$X=Tg_5uwol(k9Qn5i(LCR0mrK(E# ziMmWxUr_9lpgy+eXHa}HH9Dp~XX z15P(Mjb7ZH2t8hAM@9|kP@MLBQcku1Qd=P3axCU9NvhqFRL@FMJts-^yd>2N7|It> z#FwP6?m;PE#$3LFD(*!+_eoN{ire`bHgZ26=IhwTHzcXvl%#q~dgt5titk9@d>23S SJ$m>)qj^9cqs?jLJAMI9E?Rg1 diff --git a/plateau.java b/plateau.java index 8bbbc54..06ebae4 100644 --- a/plateau.java +++ b/plateau.java @@ -312,13 +312,19 @@ public class plateau{ this.fenetre.setVisible(true); //on ajoute son observateur (pour savegarder la partie si on ferme la fenetre) this.fenetre.addWindowListener(new observateurFenetre(this)); + this.fenetre.setBackground(new Color(0,0,0)); + JPanel panJeu = new JPanel(); + JPanel panMenu = new JPanel(); + panJeu.setBackground(new Color(0,0,0)); + panMenu.setBackground(new Color(0,0,0)); //on met un gestionaires de mise en page grille avec le nombre de ligne+1 (pour le menu en haut) et le nombre de collonne - this.fenetre.setLayout(new GridLayout(this.ligne+1,this.collonne)); + panJeu.setLayout(new GridLayout(this.ligne,this.collonne)); + panMenu.setLayout(new GridLayout(1, 7)); //on met en place le menu du haut et donc toute la première ligne - for(int i=0; i Fonction pour l'affichage du premier menu (nouvelle partie/reprendrePartie/quitter) <--------------------- public void menuChoixTypePartie(){ @@ -446,6 +451,7 @@ public class plateau{ this.fenetre.dispose(); this.fenetre= new JFrame("démineur"); this.fenetre.setLocation(0,0); + this.fenetre.setSize(1600, 1000); this.fenetre.setVisible(true); this.fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.fenetre.setLayout(new FlowLayout()); @@ -461,13 +467,9 @@ public class plateau{ pan1.add(nouveau); pan2.add(reprende); pan3.add(quitter); - pan1.setPreferredSize(new Dimension(800, 800)); - pan2.setPreferredSize(new Dimension(800, 800)); - pan3.setPreferredSize(new Dimension(800, 800)); this.fenetre.add(pan1); this.fenetre.add(pan2); this.fenetre.add(pan3); - this.fenetre.pack(); //nous ajustons la fenetre a la taille de son contenue volontairement grand qui poussera sûrment un plein ecran (2000x2000) } } \ No newline at end of file diff --git a/sauvegarde.data b/sauvegarde.data index 30c628410baf89502cc11df3418a854e45ac4cd9..0a4e39c7332f3040f2086694ed5dddefe1623f4f 100644 GIT binary patch literal 39650 zcmdU$O>87b8HQ{8Z)d%0ue@eMmdz?534+Lj#Ls0p*zpgU#VfDuuLJkL@HN4oK|V z()@IFRrOO}eN{b=CBOa`H-0qboSVUGu`Jx!YE=4X?>+g8^~qoUX2gx{y79g2V9(dw zblEQRIK)}H>t+t)GTw`mIN-v>VTQA`Q@F)%M~6{osXU6)*3z}r>>$rlpN22|wf^Mg zNpa@$Hi zdFYF{*{!8{JA7l`ryE(lT|O5TEgv@BbW|tw^(YVS6Prd@HNxu3;KJ2SHy5RKUxuu( zPOS3csmgMqP@hg z?ni0M@3iwgD{z~~tVwmxM`>BT`Ehm7_$(&5ksS?&7u=(#ZZw?yL4~WxkMoTFQgjrS zRyLC`5=zX?b_nLb}?mCw@E2kPDZr z;JG3~29!~9BTM3X_ePN&#+aa*dnm0BlCZqvriUlNUAWU5Bw(sTRt#&V5tn%s>ie9W zE5~&<)-;_mx+FI_f^X>mK3i=p}Z6d1?A$DLB2Ccer0qxq96yR1VZY`o9lW}mZa%7G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