Add host&join menu and work on modelSyncronizer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user