public class DrawTwoCard extends ColoredCard implements ActionCard
ColoredCard.Color
ActionCard.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, toString
public DrawTwoCard(ColoredCard.Color color)
color
- color of the cardpublic java.lang.String getName()
Card
public ActionCard.Action getAction()
ActionCard
getAction
in interface ActionCard