Browse Source

add boolean enemy to player

main
fdai7906 11 months ago
parent
commit
fbe6ed036b
  1. 10
      src/main/java/de/hsfulda/onses/models/Player.java

10
src/main/java/de/hsfulda/onses/models/Player.java

@ -13,6 +13,7 @@ public class Player {
private PlayerService playerService; private PlayerService playerService;
private Game game; private Game game;
private String playerName; private String playerName;
private boolean enemy;
private final ArrayList<Card> playerDeck = new ArrayList<>(); private final ArrayList<Card> playerDeck = new ArrayList<>();
public ArrayList<Card> getPlayerDeck() { public ArrayList<Card> getPlayerDeck() {
@ -52,6 +53,15 @@ public class Player {
return this; return this;
} }
public boolean isEnemy() {
return enemy;
}
public Player setEnemy(boolean enemy) {
this.enemy = enemy;
return this;
}
public PropertyChangeSupport listeners() { public PropertyChangeSupport listeners() {
if(this.listeners == null) { if(this.listeners == null) {
this.listeners = new PropertyChangeSupport(this); this.listeners = new PropertyChangeSupport(this);

Loading…
Cancel
Save