merge development into test #26

Merged
j23f0712 merged 95 commits from development into dev/test 2024-12-01 21:02:48 +01:00
Showing only changes of commit 8c03b282b3 - Show all commits

View File

@@ -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.
* *