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.
|
wcg.shared.cards |
Card related types.
|
Modifier and Type | Method and Description |
---|---|
CardSuit |
GameBot.getSuitToFollow()
Convenience method to retrieve the trump suite .
|
CardSuit |
GameMaster.getSuitToFollow()
Convenience method with suit to follow: the suit of the
first card played in this round.
|
Modifier and Type | Method and Description |
---|---|
CardCollection |
CardCollection.addCard(CardSuit suit,
CardValue value)
Convenience methods to add card given suit and value.
|
int |
DefaultCardComparator.compare(CardSuit o1,
CardSuit o2)
Implementation of a method similar the
Comparator<CardSuit> interface
using the compareTo() method of Enum . |
int |
CardComparator.compare(CardSuit o1,
CardSuit o2)
Compare card suits as in
Comparator |
CardCollection |
CardCollection.getCardsFromSuit(CardSuit suit)
New collection with same comparator only with cards from given suit.
|
CardCollection |
CardCollection.getCardsNotFromSuit(CardSuit suit)
New collection with same comparator only with cards other than given suit.
|
Modifier and Type | Method and Description |
---|---|
int |
WarCardComparator.compare(CardSuit o1,
CardSuit o2)
All suits are equal.
|
Modifier and Type | Method and Description |
---|---|
CardSuit |
RealManagerTest.TestPlayers.getSuitToFollow()
Suit of the first cards played in this round.
|
Modifier and Type | Method and Description |
---|---|
CardSuit |
Card.getSuit() |
static CardSuit |
CardSuit.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CardSuit[] |
CardSuit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
Card(CardSuit suit,
CardValue value) |