ggz.cards.common
Class Bid

java.lang.Object
  extended by ggz.cards.common.Bid

public class Bid
extends java.lang.Object


Field Summary
static Bid BRIDGE_7_NT
           
static Bid BRIDGE_DOUBLE
           
static Bid BRIDGE_PASS
           
static Bid BRIDGE_REDOUBLE
           
static int NO_VALUE
          Specifies that the bid has no value (e.g.
static Bid SPADES_SHOW_CARDS
           
 
Constructor Summary
Bid(int value)
           
Bid(int value, Suit suit)
           
Bid(int value, Suit suit, int spec, int spec2)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getSpec()
           
 int getSpec2()
           
 Suit getSuit()
           
 int getVal()
           
 int hashCode()
          This is here only because the Java API says we should implement hashCode() if we implement equals().
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BRIDGE_PASS

public static final Bid BRIDGE_PASS

BRIDGE_DOUBLE

public static final Bid BRIDGE_DOUBLE

BRIDGE_REDOUBLE

public static final Bid BRIDGE_REDOUBLE

BRIDGE_7_NT

public static final Bid BRIDGE_7_NT

SPADES_SHOW_CARDS

public static final Bid SPADES_SHOW_CARDS

NO_VALUE

public static final int NO_VALUE
Specifies that the bid has no value (e.g. Nil Bid).

See Also:
Constant Field Values
Constructor Detail

Bid

public Bid(int value)

Bid

public Bid(int value,
           Suit suit)

Bid

public Bid(int value,
           Suit suit,
           int spec,
           int spec2)
Method Detail

getVal

public int getVal()

getSuit

public Suit getSuit()

getSpec

public int getSpec()

getSpec2

public int getSpec2()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
This is here only because the Java API says we should implement hashCode() if we implement equals().

Overrides:
hashCode in class java.lang.Object