pt.ua.gboard.games
Class ChessPiece
java.lang.Object
pt.ua.gboard.games.ChessPiece
public class ChessPiece
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
public final ChessPieceType type
ChessPiece
public ChessPiece(ChessPieceType type)
isWhite
public boolean isWhite()
isBlack
public boolean isBlack()
isKing
public boolean isKing()
isQueen
public boolean isQueen()
isRook
public boolean isRook()
isBishop
public boolean isBishop()
isKnight
public boolean isKnight()
isPawn
public boolean isPawn()
equalColor
public boolean equalColor(ChessPiece other)
equalType
public boolean equalType(ChessPiece other)
equal
public boolean equal(ChessPiece other)
getGelem
public Gelem getGelem(GBoard gboard)