diff --git a/Projekte/mdga/model/src/main/java/pp/mdga/message/server/LobbyPlayerLeaveMessage.java b/Projekte/mdga/model/src/main/java/pp/mdga/message/server/LobbyPlayerLeaveMessage.java index 75627e21..328e3242 100644 --- a/Projekte/mdga/model/src/main/java/pp/mdga/message/server/LobbyPlayerLeaveMessage.java +++ b/Projekte/mdga/model/src/main/java/pp/mdga/message/server/LobbyPlayerLeaveMessage.java @@ -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. *