Plateau graphique v2 *score,tourJoueur,tailleTour,selection* + maj makefile,readme

This commit was merged in pull request #11.
This commit is contained in:
2025-11-22 11:56:51 -05:00
parent 7bb6b79d53
commit 27bfff9aa1
20 changed files with 784 additions and 270 deletions

View File

@@ -0,0 +1,41 @@
package fr.iut_fbleau.Avalam.ui;
import javax.swing.*;
import java.awt.*;
/**
* La classe <code>TurnView</code> affiche le joueur à qui c'est le tour.
*
* Elle agit comme une simple bannière dinformation,
* mise à jour par la logique du jeu.
*
* @author
* @version 1.0
*/
public class TurnView extends JPanel {
private JLabel text;
/**
* Constructeur.
*
* @param initial message initial à afficher
*/
public TurnView(String initial) {
setBackground(new Color(220,220,220));
text = new JLabel(initial);
text.setFont(new Font("Arial", Font.BOLD, 20));
add(text);
}
/**
* Met à jour le texte affichant le joueur courant.
*
* @param s message à afficher
*/
public void setTurn(String s) {
text.setText(s);
}
}