|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPiece
public class Piece
Field Summary | |
---|---|
static int |
BISHOP
|
static int |
BISHOP_VALUE
|
static int |
KING
|
static int |
KING_VALUE
|
static int |
KNIGHT
|
static int |
KNIGHT_VALUE
|
static int |
PAWN
|
static int |
PAWN_VALUE
|
static int |
QUEEN
|
static int |
QUEEN_VALUE
|
static int |
ROOK
|
static int |
ROOK_VALUE
|
Constructor Summary | |
---|---|
Piece()
Default constructor. |
|
Piece(int color,
int type,
int row,
int col)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getAcronym()
Get piece type acronym. |
int |
getCol()
Get column. |
int |
getColor()
Get color. |
int |
getRow()
Get row. |
int |
getType()
Get piece type as integer. |
int |
getValue()
Get value of the piece. |
void |
setCol(int col)
Set column. |
void |
setColor(int color)
Set color. |
void |
setRow(int row)
Set row. |
void |
setType(int type)
Set piece type as integer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int KING
public static final int QUEEN
public static final int ROOK
public static final int KNIGHT
public static final int BISHOP
public static final int PAWN
public static final int KING_VALUE
public static final int QUEEN_VALUE
public static final int ROOK_VALUE
public static final int KNIGHT_VALUE
public static final int BISHOP_VALUE
public static final int PAWN_VALUE
Constructor Detail |
---|
public Piece()
public Piece(int color, int type, int row, int col)
color
- type
- row
- col
- Method Detail |
---|
public java.lang.String getAcronym()
public int getType()
public void setType(int type)
type
- public int getValue()
public int getColor()
public void setColor(int color)
color
- public int getRow()
public void setRow(int row)
row
- public int getCol()
public void setCol(int col)
col
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |