soc.game
Interface SOCDevCardConstants

All Known Implementing Classes:
SOCDevCard, SOCPlayer

public interface SOCDevCardConstants

This is a list of constants for representing types of development cards in Settlers of Catan.

To instantiate a single card using these types, use SOCDevCard. To track a player's set of cards and special items, use SOCInventory.

UNKNOWN is the lowest card type value, lower than the lowest "known" MIN_KNOWN. MAXPLUSONE is one past the highest card type value.

If you add values here, be sure to update javadocs at SOCGameHandler.DEBUG_COMMANDS_HELP_DEV_TYPES, .debugGiveDevCard and .sendGameStateOVER , and the code in SOCDevCard.getCardTypeName and handpanel.updateDevCards . If you add VP card types, update SOCDevCard.isVPCard(int).

In version 2.0.00, the values for KNIGHT and UNKNOWN were swapped to make room for new card types. For compatibility with older versions, constants KNIGHT_FOR_VERS_1_X and UNKNOWN_FOR_VERS_1_X were added. See VERSION_FOR_NEW_TYPES.

See Also:
SOCDevCard.getCardTypeName(int, SOCGame, boolean, soc.util.SOCStringManager)

Field Summary
static int CAP
          capitol, governors-house VP card
static int DESTROY
          Destroy settlement or downgrade city.
static int DISC
          discovery, year-of-plenty card
static int KNIGHT
          Knight, robber card.
static int KNIGHT_FOR_VERS_1_X
          Previous value for KNIGHT knight/robber card type, for version 1.x clients or servers
static int LIB
          library, market VP card
static int MAXPLUSONE
           
static int MIN
          Minimum valid card type constant (UNKNOWN).
static int MIN_KNOWN
          Minimum known card type (ROADS).
static int MONO
          monopoly card
static int ROADS
          road building card
static int SWAP
          Swap settlement/city with another player.
static int TEMP
          temple VP card
static int TOW
          tower, chapel VP card
static int UNIV
          university VP card
static int UNKNOWN
          Dev-card of unknown type, for reporting to other players.
static int UNKNOWN_FOR_VERS_1_X
          Previous value for UNKNOWN card type, for version 1.x clients or servers
static int VERSION_FOR_NEW_TYPES
          First version number (2.0.00) that has the new card types and has swapped values for UNKNOWN and KNIGHT.
 

Field Detail

VERSION_FOR_NEW_TYPES

static final int VERSION_FOR_NEW_TYPES
First version number (2.0.00) that has the new card types and has swapped values for UNKNOWN and KNIGHT. At server, check against SOCGame.clientVersionLowest before sending these constants to clients. Send older clients UNKNOWN_FOR_VERS_1_X and KNIGHT_FOR_VERS_1_X instead.

See Also:
Constant Field Values

UNKNOWN_FOR_VERS_1_X

static final int UNKNOWN_FOR_VERS_1_X
Previous value for UNKNOWN card type, for version 1.x clients or servers

See Also:
Constant Field Values

KNIGHT_FOR_VERS_1_X

static final int KNIGHT_FOR_VERS_1_X
Previous value for KNIGHT knight/robber card type, for version 1.x clients or servers

See Also:
Constant Field Values

MIN

static final int MIN
Minimum valid card type constant (UNKNOWN). Lower than MIN_KNOWN.

See Also:
Constant Field Values

UNKNOWN

static final int UNKNOWN
Dev-card of unknown type, for reporting to other players. Lower than MIN_KNOWN.

See Also:
Constant Field Values

MIN_KNOWN

static final int MIN_KNOWN
Minimum known card type (ROADS). Higher than UNKNOWN.

Since:
2.0.00
See Also:
Constant Field Values

ROADS

static final int ROADS
road building card

See Also:
Constant Field Values

DISC

static final int DISC
discovery, year-of-plenty card

See Also:
Constant Field Values

MONO

static final int MONO
monopoly card

See Also:
Constant Field Values

CAP

static final int CAP
capitol, governors-house VP card

See Also:
Constant Field Values

LIB

static final int LIB
library, market VP card

See Also:
Constant Field Values

UNIV

static final int UNIV
university VP card

See Also:
Constant Field Values

TEMP

static final int TEMP
temple VP card

See Also:
Constant Field Values

TOW

static final int TOW
tower, chapel VP card

See Also:
Constant Field Values

KNIGHT

static final int KNIGHT
Knight, robber card.

In game scenario SC_PIRI, used for "Warship" cards to convert normal ships to warships.

See Also:
Constant Field Values

DESTROY

static final int DESTROY
Destroy settlement or downgrade city. For House Rule dev cards; game option "DH".

Since:
2.0.00
See Also:
Constant Field Values

SWAP

static final int SWAP
Swap settlement/city with another player. For House Rule dev cards; game option "DH".

Since:
2.0.00
See Also:
Constant Field Values

MAXPLUSONE

static final int MAXPLUSONE
See Also:
Constant Field Values