wyvern.lib.classes.games.card
Interface CardConstants

All Known Implementing Classes:
Card, CardCounting, Deck, Hand

public interface CardConstants

Interface you can implement to be able to use the names of the cards, faces and suits without prefixing them with the classname.

Version:
1.0, Oct 02, 2003
Author:
Steve Yegge

Field Summary
static Face ACE
           
static Card ACE_OF_CLUBS
           
static Card ACE_OF_DIAMONDS
           
static Card ACE_OF_HEARTS
           
static Card ACE_OF_SPADES
           
static Suit CLUBS
           
static Suit DIAMONDS
           
static Face EIGHT
           
static Card EIGHT_OF_CLUBS
           
static Card EIGHT_OF_DIAMONDS
           
static Card EIGHT_OF_HEARTS
           
static Card EIGHT_OF_SPADES
           
static Face FIVE
           
static Card FIVE_OF_CLUBS
           
static Card FIVE_OF_DIAMONDS
           
static Card FIVE_OF_HEARTS
           
static Card FIVE_OF_SPADES
           
static HandType FLUSH
           
static Face FOUR
           
static HandType FOUR_OF_A_KIND
           
static Card FOUR_OF_CLUBS
           
static Card FOUR_OF_DIAMONDS
           
static Card FOUR_OF_HEARTS
           
static Card FOUR_OF_SPADES
           
static HandType FULL_HOUSE
           
static Suit HEARTS
           
static Face JACK
           
static Card JACK_OF_CLUBS
           
static Card JACK_OF_DIAMONDS
           
static Card JACK_OF_HEARTS
           
static Card JACK_OF_SPADES
           
static Face KING
           
static Card KING_OF_CLUBS
           
static Card KING_OF_DIAMONDS
           
static Card KING_OF_HEARTS
           
static Card KING_OF_SPADES
           
static Face NINE
           
static Card NINE_OF_CLUBS
           
static Card NINE_OF_DIAMONDS
           
static Card NINE_OF_HEARTS
           
static Card NINE_OF_SPADES
           
static HandType NOTHING
           
static int NUM_CARDS
           
static int NUM_FACES
           
static int NUM_SUITS
           
static HandType ONE_PAIR
           
static Face QUEEN
           
static Card QUEEN_OF_CLUBS
           
static Card QUEEN_OF_DIAMONDS
           
static Card QUEEN_OF_HEARTS
           
static Card QUEEN_OF_SPADES
           
static HandType ROYAL_FLUSH
           
static Face SEVEN
           
static Card SEVEN_OF_CLUBS
           
static Card SEVEN_OF_DIAMONDS
           
static Card SEVEN_OF_HEARTS
           
static Card SEVEN_OF_SPADES
           
static Face SIX
           
static Card SIX_OF_CLUBS
           
static Card SIX_OF_DIAMONDS
           
static Card SIX_OF_HEARTS
           
static Card SIX_OF_SPADES
           
static Suit SPADES
           
static HandType STRAIGHT
           
static HandType STRAIGHT_FLUSH
           
static Face TEN
           
static Card TEN_OF_CLUBS
           
static Card TEN_OF_DIAMONDS
           
static Card TEN_OF_HEARTS
           
static Card TEN_OF_SPADES
           
static Face THREE
           
static HandType THREE_OF_A_KIND
           
static Card THREE_OF_CLUBS
           
static Card THREE_OF_DIAMONDS
           
static Card THREE_OF_HEARTS
           
static Card THREE_OF_SPADES
           
static Face TWO
           
static Card TWO_OF_CLUBS
           
static Card TWO_OF_DIAMONDS
           
static Card TWO_OF_HEARTS
           
static Card TWO_OF_SPADES
           
static HandType TWO_PAIR
           
 

Field Detail

NUM_CARDS

public static final int NUM_CARDS
See Also:
Constant Field Values

NUM_FACES

public static final int NUM_FACES
See Also:
Constant Field Values

NUM_SUITS

public static final int NUM_SUITS
See Also:
Constant Field Values

ACE_OF_HEARTS

public static final Card ACE_OF_HEARTS

ACE_OF_DIAMONDS

public static final Card ACE_OF_DIAMONDS

ACE_OF_CLUBS

public static final Card ACE_OF_CLUBS

ACE_OF_SPADES

public static final Card ACE_OF_SPADES

TWO_OF_HEARTS

public static final Card TWO_OF_HEARTS

TWO_OF_DIAMONDS

public static final Card TWO_OF_DIAMONDS

TWO_OF_CLUBS

public static final Card TWO_OF_CLUBS

TWO_OF_SPADES

public static final Card TWO_OF_SPADES

THREE_OF_HEARTS

public static final Card THREE_OF_HEARTS

THREE_OF_DIAMONDS

public static final Card THREE_OF_DIAMONDS

THREE_OF_CLUBS

public static final Card THREE_OF_CLUBS

THREE_OF_SPADES

public static final Card THREE_OF_SPADES

FOUR_OF_HEARTS

public static final Card FOUR_OF_HEARTS

FOUR_OF_DIAMONDS

public static final Card FOUR_OF_DIAMONDS

FOUR_OF_CLUBS

public static final Card FOUR_OF_CLUBS

FOUR_OF_SPADES

public static final Card FOUR_OF_SPADES

FIVE_OF_HEARTS

public static final Card FIVE_OF_HEARTS

FIVE_OF_DIAMONDS

public static final Card FIVE_OF_DIAMONDS

FIVE_OF_CLUBS

public static final Card FIVE_OF_CLUBS

FIVE_OF_SPADES

public static final Card FIVE_OF_SPADES

SIX_OF_HEARTS

public static final Card SIX_OF_HEARTS

SIX_OF_DIAMONDS

public static final Card SIX_OF_DIAMONDS

SIX_OF_CLUBS

public static final Card SIX_OF_CLUBS

SIX_OF_SPADES

public static final Card SIX_OF_SPADES

SEVEN_OF_HEARTS

public static final Card SEVEN_OF_HEARTS

SEVEN_OF_DIAMONDS

public static final Card SEVEN_OF_DIAMONDS

SEVEN_OF_CLUBS

public static final Card SEVEN_OF_CLUBS

SEVEN_OF_SPADES

public static final Card SEVEN_OF_SPADES

EIGHT_OF_HEARTS

public static final Card EIGHT_OF_HEARTS

EIGHT_OF_DIAMONDS

public static final Card EIGHT_OF_DIAMONDS

EIGHT_OF_CLUBS

public static final Card EIGHT_OF_CLUBS

EIGHT_OF_SPADES

public static final Card EIGHT_OF_SPADES

NINE_OF_HEARTS

public static final Card NINE_OF_HEARTS

NINE_OF_DIAMONDS

public static final Card NINE_OF_DIAMONDS

NINE_OF_CLUBS

public static final Card NINE_OF_CLUBS

NINE_OF_SPADES

public static final Card NINE_OF_SPADES

TEN_OF_HEARTS

public static final Card TEN_OF_HEARTS

TEN_OF_DIAMONDS

public static final Card TEN_OF_DIAMONDS

TEN_OF_CLUBS

public static final Card TEN_OF_CLUBS

TEN_OF_SPADES

public static final Card TEN_OF_SPADES

JACK_OF_HEARTS

public static final Card JACK_OF_HEARTS

JACK_OF_DIAMONDS

public static final Card JACK_OF_DIAMONDS

JACK_OF_CLUBS

public static final Card JACK_OF_CLUBS

JACK_OF_SPADES

public static final Card JACK_OF_SPADES

QUEEN_OF_HEARTS

public static final Card QUEEN_OF_HEARTS

QUEEN_OF_DIAMONDS

public static final Card QUEEN_OF_DIAMONDS

QUEEN_OF_CLUBS

public static final Card QUEEN_OF_CLUBS

QUEEN_OF_SPADES

public static final Card QUEEN_OF_SPADES

KING_OF_HEARTS

public static final Card KING_OF_HEARTS

KING_OF_DIAMONDS

public static final Card KING_OF_DIAMONDS

KING_OF_CLUBS

public static final Card KING_OF_CLUBS

KING_OF_SPADES

public static final Card KING_OF_SPADES

HEARTS

public static final Suit HEARTS

DIAMONDS

public static final Suit DIAMONDS

CLUBS

public static final Suit CLUBS

SPADES

public static final Suit SPADES

ACE

public static final Face ACE

TWO

public static final Face TWO

THREE

public static final Face THREE

FOUR

public static final Face FOUR

FIVE

public static final Face FIVE

SIX

public static final Face SIX

SEVEN

public static final Face SEVEN

EIGHT

public static final Face EIGHT

NINE

public static final Face NINE

TEN

public static final Face TEN

JACK

public static final Face JACK

QUEEN

public static final Face QUEEN

KING

public static final Face KING

NOTHING

public static final HandType NOTHING

ONE_PAIR

public static final HandType ONE_PAIR

TWO_PAIR

public static final HandType TWO_PAIR

THREE_OF_A_KIND

public static final HandType THREE_OF_A_KIND

STRAIGHT

public static final HandType STRAIGHT

FLUSH

public static final HandType FLUSH

FULL_HOUSE

public static final HandType FULL_HOUSE

FOUR_OF_A_KIND

public static final HandType FOUR_OF_A_KIND

STRAIGHT_FLUSH

public static final HandType STRAIGHT_FLUSH

ROYAL_FLUSH

public static final HandType ROYAL_FLUSH