|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
.
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 |
---|
static final int VERSION_FOR_NEW_TYPES
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.
static final int UNKNOWN_FOR_VERS_1_X
UNKNOWN
card type, for version 1.x clients or servers
static final int KNIGHT_FOR_VERS_1_X
KNIGHT
knight/robber card type, for version 1.x clients or servers
static final int MIN
UNKNOWN
).
Lower than MIN_KNOWN
.
static final int UNKNOWN
MIN_KNOWN
.
static final int MIN_KNOWN
ROADS
).
Higher than UNKNOWN
.
static final int ROADS
static final int DISC
static final int MONO
static final int CAP
static final int LIB
static final int UNIV
static final int TEMP
static final int TOW
static final int KNIGHT
In game scenario SC_PIRI, used for "Warship" cards to convert normal ships to warships.
static final int DESTROY
static final int SWAP
static final int MAXPLUSONE
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |