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);