Modifier and Type | Interface and Description |
---|---|
interface |
ActionCard
Interface for all action cards
(Draw Two, Wild Draw Four, Skip, and Reverse).
|
Modifier and Type | Class and Description |
---|---|
class |
ColoredCard
Abstract class for colored cards, inherited both by numbered cards and
colored action cards.
|
class |
DrawTwoCard
Class for Draw Two cards.
|
class |
NumberedCard
Class for all numbered cards in Uno.
|
class |
ReverseCard
Class for Reverse cards.
|
class |
SkipCard
Class for Skip cards.
|
class |
WildCard
Class for Wild cards.
|
class |
WildDrawFourCard
Class for Wild Draw Four cards.
|
Modifier and Type | Method and Description |
---|---|
int |
Player.makeChoice(Card top,
java.util.List<Card> hand,
ColoredCard.Color color)
Method that chooses which card to play out of a given hand.
|
void |
Player.playerPlays(int index,
Card card)
Method used to inform classes implementing the
Player
interface that the player at the given index has just played a
particular card. |
void |
Player.startGame(int players,
int index,
Card top)
Method used to inform classes implementing the
Player
interface that a new game is starting with the given number of players,
with the current player at the given index, and the given top card as
the first card on the discard pile. |
Modifier and Type | Method and Description |
---|---|
int |
Player.makeChoice(Card top,
java.util.List<Card> hand,
ColoredCard.Color color)
Method that chooses which card to play out of a given hand.
|