changed default constructor of 'Player' class

This commit is contained in:
Daniel Grigencha
2024-11-26 18:12:08 +01:00
parent 2e76c41d3a
commit d63d0cc2a0

View File

@@ -6,7 +6,6 @@
* This class will be used to handle general PlayerData * This class will be used to handle general PlayerData
*/ */
public class Player { public class Player {
private String name; private String name;
private Statistic playerStatistic; private Statistic playerStatistic;
private ArrayList<BonusCard> handCards; private ArrayList<BonusCard> handCards;
@@ -29,7 +28,7 @@ public Player(String name) {
* Constructor. * Constructor.
*/ */
public Player() { public Player() {
super(""); this("");
} }
/** /**
@@ -73,7 +72,7 @@ public ArrayList<BonusCard> getHandCards() {
* *
* @param card the card to be added to the players hand * @param card the card to be added to the players hand
*/ */
public void addHandCards(BonusCard card){ public void addHandCards(BonusCard card) {
handCards.add(card); handCards.add(card);
} }