deleted the color attribute and their usages
This commit is contained in:
@@ -13,21 +13,14 @@ public class LobbyPlayerLeaveMessage extends ServerMessage {
|
||||
*/
|
||||
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.
|
||||
*
|
||||
* @param id the id of the player leaving the lobby
|
||||
* @param color the color associated with the player leaving the lobby
|
||||
* @param id the id of the player leaving the lobby.
|
||||
*/
|
||||
public LobbyPlayerLeaveMessage(int id, Color color) {
|
||||
public LobbyPlayerLeaveMessage(int id) {
|
||||
super();
|
||||
this.id = id;
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -35,7 +28,6 @@ public LobbyPlayerLeaveMessage(int id, Color color) {
|
||||
*/
|
||||
private LobbyPlayerLeaveMessage() {
|
||||
id = 0;
|
||||
color = null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -47,15 +39,6 @@ public int getId() {
|
||||
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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user