org.ninm.games.cardgames.belot
Class BelotGame
java.lang.Object
|
+--org.apache.commons.lang.enum.Enum
|
+--org.apache.commons.lang.enum.ValuedEnum
|
+--org.ninm.games.cardgames.belot.BelotGame
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public final class BelotGame
- extends org.apache.commons.lang.enum.ValuedEnum
this is an enumeration of all the possible bids in a belot game
- Version:
- 1.0
- Author:
- Nikolay
- See Also:
- Serialized Form
Fields inherited from class org.apache.commons.lang.enum.ValuedEnum |
|
Fields inherited from class org.apache.commons.lang.enum.Enum |
|
Constructor Summary |
private |
BelotGame(java.lang.String name,
int value)
Constructor for Bid. |
Method Summary |
Suit |
getSuit()
returns the trump suit for this game. |
Methods inherited from class org.apache.commons.lang.enum.ValuedEnum |
compareTo, getEnum, getValue, toString |
Methods inherited from class org.apache.commons.lang.enum.Enum |
equals, getEnum, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PASS_VALUE
public static final int PASS_VALUE
- See Also:
- Constant Field Values
ALL_TRUMPS_VALUE
public static final int ALL_TRUMPS_VALUE
- See Also:
- Constant Field Values
NO_TRUMPS_VALUE
public static final int NO_TRUMPS_VALUE
- See Also:
- Constant Field Values
SPADES_VALUE
public static final int SPADES_VALUE
- See Also:
- Constant Field Values
HEARTS_VALUE
public static final int HEARTS_VALUE
- See Also:
- Constant Field Values
DIAMONDS_VALUE
public static final int DIAMONDS_VALUE
- See Also:
- Constant Field Values
CLUBS_VALUE
public static final int CLUBS_VALUE
- See Also:
- Constant Field Values
ALL_TRUMPS
public static final BelotGame ALL_TRUMPS
NO_TRUMPS
public static final BelotGame NO_TRUMPS
SPADES
public static final BelotGame SPADES
HEARTS
public static final BelotGame HEARTS
DIAMONDS
public static final BelotGame DIAMONDS
CLUBS
public static final BelotGame CLUBS
PASS
public static final BelotGame PASS
BelotGame
private BelotGame(java.lang.String name,
int value)
- Constructor for Bid.
- Parameters:
name
- the name of the belot gamevalue
- the ordinal
getSuit
public Suit getSuit()
- returns the trump suit for this game. For all trumps and no trumps null is returned.
- Returns:
- Suit