Updated abstract 'PowerCard' class.
Updated the abstract 'PowerCard' class by setting the 'card' attribute to 'protected' in it.
This commit is contained in:
@@ -16,7 +16,7 @@ public abstract class PowerCard {
|
||||
* Create PowerCard attributes.
|
||||
*/
|
||||
private final UUID uuid = UUID.randomUUID();
|
||||
private final BonusCard card;
|
||||
protected BonusCard card;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
@@ -25,15 +25,6 @@ public PowerCard() {
|
||||
this.card = BonusCard.HIDDEN;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param card as the card type of this PowerCard class as BonusCard enumeration.
|
||||
*/
|
||||
public PowerCard(BonusCard card) {
|
||||
this.card = card;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will be used to call the visit method of the given visitor parameter and pass a PowerCard object.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user