changed default constructor of 'Player' class
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
* This class will be used to handle general PlayerData
|
||||
*/
|
||||
public class Player {
|
||||
|
||||
private String name;
|
||||
private Statistic playerStatistic;
|
||||
private ArrayList<BonusCard> handCards;
|
||||
@@ -29,7 +28,7 @@ public Player(String name) {
|
||||
* Constructor.
|
||||
*/
|
||||
public Player() {
|
||||
super("");
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -73,7 +72,7 @@ public ArrayList<BonusCard> getHandCards() {
|
||||
*
|
||||
* @param card the card to be added to the players hand
|
||||
*/
|
||||
public void addHandCards(BonusCard card){
|
||||
public void addHandCards(BonusCard card) {
|
||||
handCards.add(card);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user