pt.ua.gboard.games
Class ChessPiece

java.lang.Object
  extended by pt.ua.gboard.games.ChessPiece

public class ChessPiece
extends java.lang.Object


Field Summary
 ChessPieceType type
           
 
Constructor Summary
ChessPiece(ChessPieceType type)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public final ChessPieceType type
Constructor Detail

ChessPiece

public ChessPiece(ChessPieceType type)
Method Detail

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)