merge development into test #26
@@ -13,21 +13,14 @@ public class LobbyPlayerLeaveMessage extends ServerMessage {
|
|||||||
*/
|
*/
|
||||||
private final int id;
|
private final int id;
|
||||||
|
|
||||||
/**
|
|
||||||
* The color associated with the player leaving the lobby.
|
|
||||||
*/
|
|
||||||
private final Color color;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new LobbyPlayerLeave instance with the specified player name and color.
|
* Constructs a new LobbyPlayerLeave instance with the specified player name and color.
|
||||||
*
|
*
|
||||||
* @param id the id of the player leaving the lobby
|
* @param id the id of the player leaving the lobby.
|
||||||
* @param color the color associated with the player leaving the lobby
|
|
||||||
*/
|
*/
|
||||||
public LobbyPlayerLeaveMessage(int id, Color color) {
|
public LobbyPlayerLeaveMessage(int id) {
|
||||||
super();
|
super();
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.color = color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -35,7 +28,6 @@ public LobbyPlayerLeaveMessage(int id, Color color) {
|
|||||||
*/
|
*/
|
||||||
private LobbyPlayerLeaveMessage() {
|
private LobbyPlayerLeaveMessage() {
|
||||||
id = 0;
|
id = 0;
|
||||||
color = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -47,15 +39,6 @@ public int getId() {
|
|||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the color associated with the player leaving the lobby.
|
|
||||||
*
|
|
||||||
* @return the color associated with the player leaving the lobby
|
|
||||||
*/
|
|
||||||
public Color getColor() {
|
|
||||||
return color;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Accepts a visitor to process this message.
|
* Accepts a visitor to process this message.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user