public class DrawTwoCard extends ColoredCard implements ActionCard
ColoredCard.ColorActionCard.Action| Constructor and Description |
|---|
DrawTwoCard(ColoredCard.Color color)
Constructor for Draw Two cards.
|
| Modifier and Type | Method and Description |
|---|---|
ActionCard.Action |
getAction()
Accessor for the action that a card performs.
|
java.lang.String |
getName()
Accessor for the name of a card.
|
getColor, toStringpublic DrawTwoCard(ColoredCard.Color color)
color - color of the cardpublic java.lang.String getName()
Cardpublic ActionCard.Action getAction()
ActionCardgetAction in interface ActionCard