public enum EnPassantRights extends Enum<EnPassantRights>
Modifier and Type | Field and Description |
---|---|
byte |
ind |
static byte |
TO_B_DEST_SQR_IND
The difference between the EP right index and the square index of the destination of EP for black.
|
static byte |
TO_B_VICT_SQR_IND
The difference between the EP right index and the square index of the possible victim of EP for black.
|
static byte |
TO_W_DEST_SQR_IND
The difference between the EP right index and the square index of the destination of EP for white.
|
static byte |
TO_W_VICT_SQR_IND
The difference between the EP right index and the square index of the possible victim of EP for white.
|
Modifier and Type | Method and Description |
---|---|
static EnPassantRights |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnPassantRights[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnPassantRights A
public static final EnPassantRights B
public static final EnPassantRights C
public static final EnPassantRights D
public static final EnPassantRights E
public static final EnPassantRights F
public static final EnPassantRights G
public static final EnPassantRights H
public static final EnPassantRights NONE
public static final byte TO_W_DEST_SQR_IND
public static final byte TO_W_VICT_SQR_IND
public static final byte TO_B_DEST_SQR_IND
public static final byte TO_B_VICT_SQR_IND
public final byte ind
public static EnPassantRights[] values()
for (EnPassantRights c : EnPassantRights.values()) System.out.println(c);
public static EnPassantRights valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020. All rights reserved.