From b550626bca9bbb34ee1e434f868db8f41f389188 Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Wed, 7 Feb 2024 15:58:16 +0100 Subject: [PATCH] add playerName --- src/main/java/de/hsfulda/onses/models/Player.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/de/hsfulda/onses/models/Player.java b/src/main/java/de/hsfulda/onses/models/Player.java index 09696bd..8e69d6e 100644 --- a/src/main/java/de/hsfulda/onses/models/Player.java +++ b/src/main/java/de/hsfulda/onses/models/Player.java @@ -12,6 +12,7 @@ public class Player { private PlayerService playerService; private Game game; + private String playerName; private final ArrayList playerDeck = new ArrayList<>(); public ArrayList getPlayerDeck() { @@ -42,6 +43,15 @@ public class Player { return this; } + public String getPlayerName() { + return playerName; + } + + public Player setPlayerName(String playerName) { + this.playerName = playerName; + return this; + } + public PropertyChangeSupport listeners() { if(this.listeners == null) { this.listeners = new PropertyChangeSupport(this);