From fbe6ed036b1aa5b20617744d4e300167246a673b Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Wed, 7 Feb 2024 16:31:58 +0100 Subject: [PATCH] add boolean enemy to player --- 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 8e69d6e..2530bdd 100644 --- a/src/main/java/de/hsfulda/onses/models/Player.java +++ b/src/main/java/de/hsfulda/onses/models/Player.java @@ -13,6 +13,7 @@ public class Player { private PlayerService playerService; private Game game; private String playerName; + private boolean enemy; private final ArrayList playerDeck = new ArrayList<>(); public ArrayList getPlayerDeck() { @@ -52,6 +53,15 @@ public class Player { return this; } + public boolean isEnemy() { + return enemy; + } + + public Player setEnemy(boolean enemy) { + this.enemy = enemy; + return this; + } + public PropertyChangeSupport listeners() { if(this.listeners == null) { this.listeners = new PropertyChangeSupport(this);