public class ChessPiece
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
ChessPieceType |
type |
Constructor and Description |
---|
ChessPiece(ChessPieceType type) |
Modifier and Type | Method and Description |
---|---|
boolean |
equal(ChessPiece other) |
boolean |
equalColor(ChessPiece other) |
boolean |
equalType(ChessPiece other) |
Gelem |
getGelem(GBoard gboard) |
boolean |
isBishop() |
boolean |
isBlack() |
boolean |
isKing() |
boolean |
isKnight() |
boolean |
isPawn() |
boolean |
isQueen() |
boolean |
isRook() |
boolean |
isWhite() |
public final ChessPieceType type
public ChessPiece(ChessPieceType type)
public boolean isWhite()
public boolean isBlack()
public boolean isKing()
public boolean isQueen()
public boolean isRook()
public boolean isBishop()
public boolean isKnight()
public boolean isPawn()
public boolean equalColor(ChessPiece other)
public boolean equalType(ChessPiece other)
public boolean equal(ChessPiece other)