Add host&join menu and work on modelSyncronizer

This commit is contained in:
Felix
2024-11-21 16:14:06 +01:00
parent 982ca00b55
commit c470c205e4
13 changed files with 578 additions and 61 deletions

View File

@@ -9,15 +9,18 @@ public class TskSelectNotification extends Notification{
private Color color;
private String name;
private boolean self;
/**
* 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.
* @param self true if it was the local player selecting the tsk, false otherwise
*/
TskSelectNotification(Color color, String name) {
TskSelectNotification(Color color, String name, boolean self) {
this.color = color;
this.name = name;
this.self = self;
}
/**
@@ -35,4 +38,12 @@ public Color getColor() {
public String getName() {
return name;
}
/**
* Tells if it was the local player selecting this tsk.
* @return ture if it was the local player selecting the tsk.
*/
public boolean isSelf() {
return self;
}
}