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

Field Summary
static BelotGame ALL_TRUMPS
           
static int ALL_TRUMPS_VALUE
           
static BelotGame CLUBS
           
static int CLUBS_VALUE
           
static BelotGame DIAMONDS
           
static int DIAMONDS_VALUE
           
static BelotGame HEARTS
           
static int HEARTS_VALUE
           
static BelotGame NO_TRUMPS
           
static int NO_TRUMPS_VALUE
           
static BelotGame PASS
           
static int PASS_VALUE
           
static BelotGame SPADES
           
static int SPADES_VALUE
           
 
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
 

Field Detail

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
Constructor Detail

BelotGame

private BelotGame(java.lang.String name,
                  int value)
Constructor for Bid.

Parameters:
name - the name of the belot game
value - the ordinal
Method Detail

getSuit

public Suit getSuit()
returns the trump suit for this game. For all trumps and no trumps null is returned.

Returns:
Suit

SourceForge.net Logo