Make lobby buttons colored

This commit is contained in:
Felix
2024-11-20 15:21:07 +01:00
parent d87acd46cc
commit 02ce0df614
4 changed files with 141 additions and 4 deletions

View File

@@ -8,13 +8,16 @@
public class TskSelectNotification extends Notification{
private Color color;
private String name;
/**
* Constructor.
* @param color the color of the player that is in the game.
* @param name the name of the player that is in the game.
*/
TskSelectNotification(Color color) {
TskSelectNotification(Color color, String name) {
this.color = color;
this.name = name;
}
/**
@@ -24,4 +27,12 @@ public class TskSelectNotification extends Notification{
public Color getColor() {
return color;
}
/**
* Get the name of the player that is in the game.
* @return the name of the player that is in the game.
*/
public String getName() {
return name;
}
}