nettoyage
This commit is contained in:
parent
cac52c7180
commit
ef1fddc4ae
BIN
Banniere.class
Normal file
BIN
Banniere.class
Normal file
Binary file not shown.
@ -18,25 +18,27 @@ public class Banniere extends JPanel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Méthode pour afficher le nombre de mines restantes
|
// Méthode pour afficher le nombre de mines restantes
|
||||||
public void setMinesLeft(int minesLeft){
|
public void setMinesLeft(int minesLeft) {
|
||||||
this.removeAll();
|
this.removeAll();
|
||||||
this.add(new JLabel("Mines restantes : "+Integer.toString(minesLeft)));
|
this.add(new JLabel("Mines restantes : "+Integer.toString(minesLeft)),BorderLayout.CENTER);
|
||||||
this.repaint();
|
this.repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Méthode pour indiquer au joueur sa Victoire
|
// Méthode pour indiquer au joueur sa Victoire
|
||||||
public void setVictoire(){
|
public void setVictoire() {
|
||||||
this.add(new Fin("Victoire ! Retour au menu...",this.getSize()));
|
JLabel victoire = new JLabel("Victoire ! Retour au menu...");
|
||||||
this.repaint();
|
victoire.setForeground(new Color(0, 22, 236));
|
||||||
|
this.add(victoire,BorderLayout.SOUTH);
|
||||||
Timer timerMenu = new Timer(5000, new MenuListener(this.fenetre, this.menu));
|
Timer timerMenu = new Timer(5000, new MenuListener(this.fenetre, this.menu));
|
||||||
timerMenu.setRepeats(false);
|
timerMenu.setRepeats(false);
|
||||||
timerMenu.start();
|
timerMenu.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Méthode pour indiquer au joueur sa Défaite
|
// Méthode pour indiquer au joueur sa Défaite
|
||||||
public void setDefaite(){
|
public void setDefaite() {
|
||||||
this.add(new Fin("Défaite ! Retour au menu...",this.getSize()));
|
JLabel defaite = new JLabel("Défaite ! Retour au menu...");
|
||||||
this.repaint();
|
defaite.setForeground(new Color(0, 22, 236));
|
||||||
|
this.add(defaite,BorderLayout.SOUTH);
|
||||||
Timer timerMenu = new Timer(5000, new MenuListener(this.fenetre, this.menu));
|
Timer timerMenu = new Timer(5000, new MenuListener(this.fenetre, this.menu));
|
||||||
timerMenu.setRepeats(false);
|
timerMenu.setRepeats(false);
|
||||||
timerMenu.start();
|
timerMenu.start();
|
||||||
|
BIN
Case.class
Normal file
BIN
Case.class
Normal file
Binary file not shown.
BIN
Doute.class
Normal file
BIN
Doute.class
Normal file
Binary file not shown.
BIN
Entourage.class
Normal file
BIN
Entourage.class
Normal file
Binary file not shown.
BIN
Etoile.class
Normal file
BIN
Etoile.class
Normal file
Binary file not shown.
BIN
FrameJeu.class
Normal file
BIN
FrameJeu.class
Normal file
Binary file not shown.
BIN
FrameMenu$1.class
Normal file
BIN
FrameMenu$1.class
Normal file
Binary file not shown.
BIN
FrameMenu.class
Normal file
BIN
FrameMenu.class
Normal file
Binary file not shown.
BIN
Grille.class
Normal file
BIN
Grille.class
Normal file
Binary file not shown.
BIN
ListenerCase.class
Normal file
BIN
ListenerCase.class
Normal file
Binary file not shown.
BIN
Main.class
Normal file
BIN
Main.class
Normal file
Binary file not shown.
BIN
MenuListener.class
Normal file
BIN
MenuListener.class
Normal file
Binary file not shown.
BIN
NewGameListener.class
Normal file
BIN
NewGameListener.class
Normal file
Binary file not shown.
BIN
SettingsListener.class
Normal file
BIN
SettingsListener.class
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user