Package | Description |
---|---|
wcg.games |
Classes common to all card games.
|
wcg.games.war |
War is a very simple card game, mostly played by children.
|
wcg.main |
Classes for managing the web card game service.
|
Modifier and Type | Field and Description |
---|---|
(package private) CardCollection |
GameBot.PlayerCards.hasPlayed |
(package private) CardCollection |
GameBot.PlayerCards.onTable |
Modifier and Type | Method and Description |
---|---|
CardCollection |
CardCollection.addAllCards(java.util.List<Card> cards)
Add a list of cards to this collection.
|
CardCollection |
CardCollection.addCard(Card card)
Add a single card to this collection.
|
CardCollection |
CardCollection.addCard(CardSuit suit,
CardValue value)
Convenience methods to add card given suit and value.
|
CardCollection |
CardCollection.addCardCollection(CardCollection collection)
Add another collection to this one.
|
CardCollection |
CardCollection.clearCards()
Clear all cards from this collection
|
CardCollection |
GameBot.getAllCardsOnTable()
Convenience method to retrieve all cards on the table.
|
CardCollection |
CardCollection.getCardsFromSuit(CardSuit suit)
New collection with same comparator only with cards from given suit.
|
CardCollection |
CardCollection.getCardsLargerThan(Card limit)
New collection with same comparator
and only with cards larger than given card
|
CardCollection |
CardCollection.getCardsNotFromSuit(CardSuit suit)
New collection with same comparator only with cards other than given suit.
|
protected CardCollection |
GameMaster.getCardsOnTable(java.lang.String nick)
Retrieve cards on table of player with given nick.
|
CardCollection |
CardCollection.getCardsSmallerThan(Card limit)
New collection with same comparator
and only with cards smaller than given card
|
CardCollection |
CardCollection.getCardsWithValue(CardValue value)
New collection with same comparator and the cards
with given value from any suit.
|
static CardCollection |
CardCollection.getDeck()
A
CardCollection with a deck cards of all suits and values,
backed by the default card comparator |
protected CardCollection |
GameMaster.getDeck()
The deck of cards used by this game, backed by the defined card comparator.
|
static CardCollection |
CardCollection.getDeck(CardComparator comparator)
A {code CardCollection} with a deck of cards of all suits and values
with given card comparator
|
static CardCollection |
CardCollection.getFullDeck()
A
CardCollection with a full deck of cards, including 2 jokers,
backed by the default card comparator |
static CardCollection |
CardCollection.getFullDeck(CardComparator comparator)
A
CardCollection with a full deck of cards, including 2 jokers,
backed by the given card comparator |
CardCollection |
GameBot.getHand()
The collection of cards this player holds in her hand.
|
protected CardCollection |
GameMaster.getHand(java.lang.String nick)
Get a cards in given player's hand.
|
CardCollection |
CardCollection.getHighestValueCards()
New collection with same comparator and the cards
with the highest value from any suit.
|
CardCollection |
CardCollection.getLowestValueCards()
New collection with same comparator and the cards
with the lowest value from any suit.
|
CardCollection |
GameBot.getPlayedCards()
All cards already played in this game.
|
protected CardCollection |
GameMaster.newCardCollection()
Convenience method to create a new empty card collection backed by the
this games's
CardComparator . |
CardCollection |
CardCollection.removeRepeated()
Removes duplicates in this collection.
|
CardCollection |
CardCollection.shuffle()
Shuffle the cards in this collection.
|
CardCollection |
CardCollection.takeFirstCards(int count)
Take given count of cards from the beginning of this collection.
|
Modifier and Type | Method and Description |
---|---|
CardCollection |
CardCollection.addCardCollection(CardCollection collection)
Add another collection to this one.
|
protected void |
GameMaster.sendCards(java.lang.String nick,
CardCollection cards)
Send to player with the given nick the given card collection.
|
void |
GameBot.setHand(CardCollection hand)
Change the cards this player holds in her hand
for testing purposes only.
|
Modifier and Type | Field and Description |
---|---|
(package private) CardCollection |
WarGameMaster.heap |
Modifier and Type | Field and Description |
---|---|
(package private) CardCollection |
RealManagerTest.TestPlayers.TestPlayer.allCardsOnTable |
(package private) CardCollection |
RealManagerTest.TestPlayers.TestPlayer.hand |