public enum MoveType extends Enum<MoveType>
Enum Constant and Description |
---|
EN_PASSANT |
LONG_CASTLING |
NORMAL |
PROMOTION_TO_BISHOP |
PROMOTION_TO_KNIGHT |
PROMOTION_TO_QUEEN |
PROMOTION_TO_ROOK |
SHORT_CASTLING |
Modifier and Type | Field and Description |
---|---|
byte |
ind |
Modifier and Type | Method and Description |
---|---|
static MoveType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MoveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MoveType NORMAL
public static final MoveType SHORT_CASTLING
public static final MoveType LONG_CASTLING
public static final MoveType EN_PASSANT
public static final MoveType PROMOTION_TO_QUEEN
public static final MoveType PROMOTION_TO_ROOK
public static final MoveType PROMOTION_TO_BISHOP
public static final MoveType PROMOTION_TO_KNIGHT
public static MoveType[] values()
for (MoveType c : MoveType.values()) System.out.println(c);
public static MoveType 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.