Modifier and Type | Class and Description |
---|---|
class |
Card
A class for representing a card in the game.
|
Modifier and Type | Method and Description |
---|---|
static ICard |
Deck.giveCard()
Method for dealing a card.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<ICard> |
IPlayer.getCards()
Returns the cards on the players hand
|
java.util.ArrayList<ICard> |
Player.getCards() |
static java.util.LinkedList<ICard> |
Deck.getDeckList() |
static java.util.LinkedList<ICard> |
Deck.getDiscard() |
Modifier and Type | Method and Description |
---|---|
static void |
Deck.discard(ICard card)
Method which adds the given card to the list of discarded cards.
|
boolean |
IPlayer.exchangeCard(ICard c1,
ICard c2,
ICard c3)
Method for trading in cards for troops.
|
boolean |
Player.exchangeCard(ICard c1,
ICard c2,
ICard c3) |
void |
Game.handleCardEvent(ICard card) |
void |
IGame.handleCardEvent(ICard province)
Determines what should be done with the chosen card
|
java.util.ArrayList<java.lang.String> |
EventHandler.handleCardEvent(ICard card,
IPlayer currentPlayer)
Makes the exchange of three card, when you've chosen three correct cards.
|
java.util.ArrayList<java.lang.String> |
CardExchanger.makeExchange(ICard card,
IPlayer currentPlayer)
Checks if the player has clicked cards before.
|